Skip to content

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

Description

@bard0x

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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