Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io_exception, Transceive failed, #9

Open
RookieHands opened this issue Mar 11, 2022 · 0 comments
Open

io_exception, Transceive failed, #9

RookieHands opened this issue Mar 11, 2022 · 0 comments

Comments

@RookieHands
Copy link

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant