readStatusSerial method
Implementation
@override
Future<Uint8List?> readStatusSerial(Uint8List command) async {
try {
Uint8List commandBytes = Uint8List.fromList(command);
final Uint8List? result = await methodChannel
.invokeMethod('readStatusSerial', {'command': commandBytes});
/*if (result != null) {
log('Estado de la impresora recibido: $result');
}*/
return result;
} catch (e) {
//log("Error al obtener el estado de la impresora: $e");
return null;
}
}