InputArray reads (and empties) all the data that is waiting in the input buffer.
It is however possible that while you read the data, new data arrives.
Timeout affects the time to wait before the program raises a timeout error when you read or write data to the serial port.
The default is Infinite.
If a timeout occurs an error will be raised.
|