transmissionOfStatus method

Future<int?> transmissionOfStatus({
  1. int n = 1,
})

Implementation

Future<int?> transmissionOfStatus({int n = 1}) async {
  var waitFuture = _waitInputByte();
  _socket.add(_generator.transmissionOfStatus(n: n));
  await waitFuture;

  var status = _inputBytes.lastOrNull;
  if (status != null) {
    // Remove reserved bits:
    status = status & 0x0F;
  }
  return status;
}