deliverFromDevice method

void deliverFromDevice(
  1. Uint8List bytes
)

Hands one binary message of the device to the host; called by the stream endpoint.

Implementation

void deliverFromDevice(Uint8List bytes) {
  if (!_fromDevice.isClosed) _fromDevice.add(bytes);
}