sio_tryread() function
Tries to read from the serial device. Same as sio_read but returns immediately if no data is available and never blocks.
Arguments
data
pointer to data buffer for receiving
len
maximum length (in bytes) of data to receive
Return value
number of bytes actually received