write abstract method

int write(
  1. Uint8List bytes, {
  2. int timeout = -1,
})

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});