Using the phone as a milfare card.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using the phone as a milfare card.

890 Views
mikiawm
Contributor I

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!

0 Kudos
1 Reply

670 Views
Kan_Li
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos