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

1k Mifare Classic write 390 characters #73

Open
nefesyazilimcom opened this issue Jul 13, 2021 · 0 comments
Open

1k Mifare Classic write 390 characters #73

nefesyazilimcom opened this issue Jul 13, 2021 · 0 comments

Comments

@nefesyazilimcom
Copy link

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 <Wire.h>
#include <PN532_I2C.h>
#include <PN532.h>
#include <NfcAdapter.h>

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 #53 but dont working

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