output method
Output bytes to the deivce
Implementation
@override
void output(Uint8List bytes) async {
final message = UrpMessage.fromBuffer(bytes.sublist(2));
if (message.header.target.deviceClass == UrpDeviceClass.urpReader) {
urpLogger.d("Checking if virtual device replies to message");
final response = await onRequest(message.request);
if (response != null) {
urpLogger.d("Virtual device replied to message");
replyFromVirtualDevice(message.header.seqNr, response);
}
}
}