clearFlagCode method
Implementation
Future<Uint8List> clearFlagCode(NfcTag tag, int data) async {
Uint8List? receive;
try {
try {
receive = await Sic431XCore.instance
.sendCommand(tag, Uint8List.fromList([0xB4, data]));
} catch (e) {
return Uint8List(0);
}
if (receive!.isNotEmpty) {
return receive;
} else {
if (Platform.isIOS) {
NfcManager.instance
.stopSession(errorMessage: 'Read Register error !!!');
}
return Uint8List(0);
}
} catch (e) {
return Uint8List(0);
}
}