1 #include <simgear/compiler.h>
6 #include <simgear/debug/logstream.hxx>
10 #if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
21 sglog().setLogLevels( SG_ALL, SG_INFO );
23 cout << "start of main" << endl;
25 result = port.open_port("/dev/ttyS1");
26 cout << "opened port, result = " << result << endl;
28 result = port.set_baud(4800);
29 cout << "set baud, result = " << result << endl;
31 port.write_port("ATDT 626-9800\n");
34 value = port.read_port();
35 if ( value.length() ) {
36 cout << "-> " << value << endl;