sendBytes method

Future<bool> sendBytes(
  1. List<int> message
)

Equivalent to Send(byte[] message) in C#.

Implementation

Future<bool> sendBytes(List<int> message) async {
  response = '';
  statusResponse = '';
  if (!isConnected) {
    final ok = await open();
    if (!ok) return false;
  }

  final framed = _dataPreparationBytes(stx, Uint8List.fromList(message), etx);
  return _writeAll(framed);
}