sendRawFrame method
Send raw frame to the remote server
Implementation
@override
Future<Uint8List> sendRawFrame(Uint8List aduRequest) async {
if (!isConnected) {
await connect();
}
await _port.write(aduRequest);
// Read until we find the end pattern (\r\n)
final aduResponse = await _port.readUntil(
_asciiEnd.codeUnits,
maxLength: asciiCharacterMaxSize,
);
return aduResponse;
}