Introduction
As we saw in the previous chapters, the NFC Forum is responsible for developing standards-based NFC specifications to allow interoperability between different devices and tags. One of the specifications created by the NFC Forum is NFC Data Exchange Format (NDEF). The NDEF specification defines the message encapsulation format to exchange information between two NFC-enabled devices or devices with the NFC tag. NDEF is a lightweight, binary message format that can be used to encapsulate several custom payloads. Using this abstraction layer allows us to create the standard tag content compatible with all the NFC Forum tag types, ignoring the fact that each tag type has different hardware setups and memory layouts.
The NDEF Message is composed by one or more NDEF records, and each record contains the payload and a header in which the data length and type and identifier are stored.
In this chapter, we will create some examples that will allow us to work with the NDEF standard and start...