don / NDEF

NDEF Library for Arduino. Read and Write NDEF Messages to NFC tags with Arduino.
Other
286 stars 142 forks source link

1k Mifare Classic write 390 characters #73

Open nefesyazilimcom opened 3 years ago

nefesyazilimcom commented 3 years ago

hello i wanna write 390 characters 1k Mifare Classic card but i cant write it says write successful but records are empty

my code : `#include

include

include

include

PN532_I2C pn532_i2c(Wire); NfcAdapter nfc = NfcAdapter(pn532_i2c);

void setup() { Serial.begin(115200); Serial.println("Serial Start"); nfc.begin(); Serial.println("NFC Start"); }

void loop() { if (nfc.tagPresent()) { NfcTag tag = nfc.read(); tag.print(); } if (nfc.tagPresent()) { NdefMessage message = NdefMessage(); message.addTextRecord("denemedenemedenemedenemedenemedenemedenemedenemedenemedenemedenemedenemedenemedenemeden");

    bool   success = nfc.write(message);
    if (success)
    {
        Serial.println("Write Success");
    }
    else
    {
        Serial.println("Error");
    }
}

} ` i use https://github.com/don/NDEF/issues/53 but dont working