read abstract method

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

Read data from the serial port.

The operation attempts to read N bytes of data.

If timeout is 0 or greater, the read operation is blocking. The timeout is specified in milliseconds. Pass 0 to wait infinitely.

Implementation

Uint8List read(int bytes, {int timeout = -1});