Engenius class
Esta clase permite la comunicación con el lector de tarjetas de proximidad de la marca Engenius
Para poder utilizarla es necesario importar el paquete en el archivo de inicio de la aplicación.
import 'package:engenius/engenius.dart';
Para poder utilizarla es necesario instanciar la clase y llamar el metodo que se necesite.
Engenius engenius = Engenius();
var resultado = await engenius.isMF1Here;
Los metodos disponibles son los siguientes:
- isMF1Here - Devuelve un booleano indicando si hay una tarjeta de proximidad cerca del lector.
- habilitar - Habilita el lector para la lectura de tarjetas.
- leerEnviar - Devuelve un List con la información de la tarjeta leida o un List vacio si no se pudo leer la tarjeta.
- recargar - Devuelve un String con la respuesta del servidor de recarga, si la recarga es exitosa devuelve la palabra "true" de lo contrario devuelve "false".
Constructors
- Engenius()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Static Methods
-
leerEnviar(
) → Future< List> -
procesar(
List resultado) → Future< List> -
procesar4k(
List resultado) → Future< List> -
readMF1(
int sectorIndex, int blockIndex, Uint8List key) → Future< List> -
recargar(
dynamic idcard, dynamic valor, dynamic pass, dynamic usuario) → Future< String> -
serialmedidor(
) → Future< String> -
write(
dynamic token) → Future< String> -
writeMF1(
String token, Uint8List key) → Future< bool> -
writeMF2(
int sectorIndex, int blockIndex, Uint8List key, Uint8List data) → Future< bool?>
Constants
- channel → const MethodChannel