nRF5 SDK v15.3.0
URI Message Example

The URI Message Example shows how to use the NFC tag to expose a URL record to NFC devices.

When the application starts, it initializes the NFC tag and generates a URI message with a URI record containing the URL "". 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 URI Message Example shows the usage of the URI message generation module.

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

This application is not power optimized!


Test the URI Message 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 tries to open the URL "" in a web browser.
  4. Move the smartphone/tablet away from the NFC antenna and observe that LED 1 turns off.

Documentation feedback | Developer Zone | Subscribe | Updated