I'm trying to use a NFC shield with a PN532 NFC chip attached to my Raspberry Pi to have the same effect as a NFC tag. Thus, when it is read by a phone, it will display plain text, URL, etc.
I have installed LibNFC successfully and can poll the device, and also get what I want from the example NFC-Emulate-Forum-Tag2. How do I cahnge the data that is sent to the phone?
The tag memory is emulated inside the NFC-Emulate-Forum-Tag2 example program that you use. The array
__nfcforum_tag2_memory_area
contains the tag memory contents:See the Type 2 Tag Operation Specification and the NFC Data Exchange Format (NDEF) specification on how to encode the data inside the emulated tag memory area.