public Result read (uint8 data, TimeVal timeout)
Warning: read is deprecated since 1.18.
Attempt to read
data.length bytes into
data from the connected this, blocking up to
timeout can be
null, in which case this function might block forever.
This function can be cancelled with flush.
the data to read
a timeout value or
the size of
OK on success.