3 #include <simgear/debug/logstream.hxx>
12 fglog().setLogLevels( FG_ALL, FG_INFO );
14 cout << "start of main" << endl;
16 result = port.open_port("/dev/ttyS1");
17 cout << "opened port, result = " << result << endl;
19 result = port.set_baud(4800);
20 cout << "set baud, result = " << result << endl;
22 port.write_port("ATDT 626-9800\n");
25 value = port.read_port();
26 if ( value.length() ) {
27 cout << "-> " << value << endl;