Serial Port Question
Posted: Sun Dec 20, 2015 10:55 pm
SerialClose(1);
fdserial = OpenSerial(1, 9600, 1 ,8, eParityNone);
SerialClose(0);
ffserial = OpenSerial(0, 115200, 1 ,8, eParityNone);
ReplaceStdio( 0, ffserial ); // stdin
ReplaceStdio( 1, fdserial ); // stdout
ReplaceStdio( 2, ffserial ); // stderr
I have the above. Is it possible to read from a port when it is not the stdio?
Thanks!
fdserial = OpenSerial(1, 9600, 1 ,8, eParityNone);
SerialClose(0);
ffserial = OpenSerial(0, 115200, 1 ,8, eParityNone);
ReplaceStdio( 0, ffserial ); // stdin
ReplaceStdio( 1, fdserial ); // stdout
ReplaceStdio( 2, ffserial ); // stderr
I have the above. Is it possible to read from a port when it is not the stdio?
Thanks!