AnsweredAssumed Answered

Using the phone as a milfare card.

Question asked by Micshal Sobssanski on Jan 21, 2019
Latest reply on Jan 29, 2019 by Kan_Li

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!

Outcomes