Encoding a URI in an NFC NDEF payload
An NDEF message is made up of TLVs. The TLVs can contain the data that should be transmitted over NFC, but can also be a signal that the message is over. Here’s where the NDEF paylod fits in to the TLV.
- T = Type
- L = Length
- V = Value – the NDEF payload
For this post we’ll encode a URI as the NDEF payload. To read about creating the rest of the NDEF record TLV, or terminal TLVs, read my post on Read in full