write method

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

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

@override
int write(Uint8List bytes, {int timeout = -1}) => _inner.write(bytes, timeout: timeout);