| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
URI Message Example
This information applies to the nRF52 Series only.

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 "nordicsemi.com". 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`

Note
  This application is not power optimized!

# Testing

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 "http://www.nordicsemi.com" in a web browser.
4. Move the smartphone/tablet away from the NFC antenna and observe that LED 1 turns off.