|
Use the following procedure to process the data received.
- Specify the timeout interval.
- Use a WAIT statement to wait for data input (receive buffer)
or a timeout.
- Use the LOC function to check the number of bytes in the
receive buffer and read any data available with the INPUT$
function.
Do not use the INPUT# and LINE INPUT# statements to read in
data. They suspend the user application program until they receive
a carriage return (0Dh) or comma (,), so can appear to hang if
communications circuit errors produce data dropout or the circuit
is broken. |