Hello, this is my second topic !
Sorry for my english…
so, i have a problem with NFC shield V2.1 !
“http://www.seeedstudio.com/wiki/NFC_Shield_V2.0”
So, i want to READ a TAG, it’s impossible…
Look screen :
I use “NFC Tool” on Play store !
We can write and Read a tag…
Look.
It’s an application FR
For example, " SIN" this is the TAG writter NFC
I want that NFC shield decode my message and Read…
For example in the website NFC Shield, HE CAN READ…
i hope, u understand my problem…
Just one question, NFC shield can READ the tag writter by an application on Play store “Android” ???
just read… this is possible or not ?
I use this code
[code]#include <SPI.h>
#include “PN532_SPI.h”
#include “PN532.h”
#include “NfcAdapter.h”
PN532_SPI interface(SPI, 10); // create a SPI interface for the shield with the SPI CS terminal at digital pin 10
NfcAdapter nfc = NfcAdapter(interface); // create an NFC adapter object
void setup(void)
{
Serial.begin(115200); // start serial comm
Serial.println(“NDEF Reader”);
nfc.begin(); // begin NFC comm
}
void loop(void)
{
Serial.println("\nScan an NFC tag\n");
if (nfc.tagPresent()) // Do an NFC scan to see if an NFC tag is present
{
NfcTag tag = nfc.read(); // read the NFC tag
if(tag.hasNdefMessage())
{
NdefMessage message = tag.getNdefMessage();
for(int i=0;i<message.getRecordCount();i++)
{
NdefRecord record = message.getRecord(i);
int payloadLength = record.getPayloadLength();
byte payload[payloadLength];
record.getPayload(payload);
Serial.write(payload,payloadLength);
}
}
}
delay(500); // wait half a second (500ms) before scanning again (you may increment or decrement the wait time)
} [/code]
Thanks,