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

Error. Failed read block 4 In read mode tag #72

Open
bard0x opened this issue Jul 10, 2021 · 0 comments
Open

Error. Failed read block 4 In read mode tag #72

bard0x opened this issue Jul 10, 2021 · 0 comments

Comments

@bard0x
Copy link

bard0x commented Jul 10, 2021

Hi everyone,

I tried to write a simple NdefMessage using a WriteTag sketch example.
If I try to read the tag writed the serial monitor show me this error message:

Place a formatted Mifare Classic NFC tag on the reader.
Success. Try reading this tag with your phone.
Error. Failed read block 4
NFC Tag - Mifare Classic
UID 08 77 E5 0E

No NDEF Message

Why occurs it?

This is my code

if (nfc.tagPresent()) { NdefMessage message = NdefMessage(); message.addTextRecord("Hello, Arduino!"); boolean success = nfc.write(message); if (success) { SERIAL.println("Success. Try reading this tag with your phone."); NfcTag tag = nfc.read(); tag.print(); } else { SERIAL.println("Write failed"); } }

Thank's in advance

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