Hello, I am new here. I have a problem with explorer ww board. I don't know how can I send a ndef message from phone to explore-nfc.
On explorer site I try to use this code from https://github.com/AlterCodex/nxppy:
import nxppyimport ndef # Instantiate readermifare = nxppy.Mifare()# Select taguid = mifare.select()# Read NDEF datandef_data = mifare.read_ndef()# Parse NDEF datandef_records = list(ndef.message_decoder(ndef_data))
I just want to make it very simple just to send a 4 letter code to my raspberry pi program.
When I try to send a ndef message from a phone with this code I get memory error:
public NdefMessage CreateNdefMessage(NfcEvent e) { NdefRecord uriRecord = NdefRecord.CreateUri("http://myURL"); NdefMessage message = new NdefMessage(new[] { uriRecord }); return message; }
It is possible to send a ndef message this way? Why It is not working? Thanks!
We provide Dev resources on that topic. Please kindly refer to NFC on Android|NXP for details.
Hope that helps,
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------