writeE2 method
Implementation
Future<bool?> writeE2(NfcTag tag, int address, Uint8List payload) async {
Uint8List? receive =
await sendCommand(tag, Uint8List.fromList([0xA2, address] + payload));
if (receive!.isEmpty) {
return false;
}
if (hex.encode(receive).isEmpty) {
if (Platform.isIOS) {
NfcManager.instance
.stopSession(errorMessage: 'Read Register error !!!');
}
return false;
}
return true;
}