Skip to content

io_exception, Transceive failed, #9

Description

@RookieHands

Is there no MifareClassic.connect() method?

MifareClassic? mifareClassic = MifareClassic.from(tag);
if (mifareClassic == null) {
print('Tag is not MifareClassic.');
return;
}
Uint8List uint8list = Uint8List.fromList([0x81, 0xE6, 0x33, 0x0D, 0xEE, 0x4F]);
bool oneAuth = await mifareClassic.authenticateSectorWithKeyA(
sectorIndex: 1, key: uint8list);
if (oneAuth) {
Uint8List oneBlockData = await mifareClassic.readBlock(blockIndex: 1);
String oneData = String.fromCharCodes(oneBlockData);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions