SERIAL_WaitReply
The SERIAL_WaitReply() function waits for a character to appear on the serial port.
Synopsis
int SERIAL_WaitReply( int port );
Parameters
Parameter |
Description |
---|---|
port
|
serial port number (0 based). Specify port 0 to redirect the output to the hsmtrace log. |
Return Code
0: There is a character at the serial port.
-1: Timeout occurred, and no data appeared.