nRF5 SDK v15.3.0
Text Record Example

The NFC Text Record Example shows how to use the NFC tag to expose a Text record to NFC polling devices.

When the application starts, it initializes the NFC tag and generates an NDEF message with three Text records that contain the text "Hello World!" in three languages. Then it sets up the NFC library to use the generated message and sense the external NFC field. The only events handled by the application are the NFC events.

The Text Record Example shows the usage of the Text record generation module.

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\nfc\record_text

This application is not power optimized!


Test the Text Record Example with a smartphone or a tablet with NFC support by performing the following steps:

  1. Compile and program the application.
  2. Touch the NFC antenna with the smartphone or tablet and observe that LED 1 is lit.
  3. Observe that the smartphone/tablet displays the encoded text (in the most suitable language).
  4. Move the smartphone/tablet away from the NFC antenna and observe that LED 1 turns off.

Documentation feedback | Developer Zone | Subscribe | Updated