readStatusSerial method

  1. @override
Future<Uint8List?> readStatusSerial(
  1. Uint8List command
)
override

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;
  }
}