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