the following piece of code is supposed to “Erase” data from the tag, basically writing zeros in the all user-memory pages
but it does nothing, the data is always there
try {
for (int page = 4; page < 40; page++) {
await nfca.transceive(
data: Uint8List.fromList([0xA2, page, 0x00, 0x00, 0x00]),
);
}
} catch (e) {
print('Error erasing tag: ${e.toString()}');
}
I tried all types of loops, nothing worked
1