write abstract method
Write data to the serial port.
If timeout
is 0 or greater, the write operation is blocking.
The timeout is specified in milliseconds. Pass 0 to wait infinitely.
Returns the amount of bytes written.
Implementation
int write(Uint8List bytes, {int timeout = -1});