.. _record_text_t2t_sample: NFC: Text record for Type 2 Tag ############################### .. contents:: :local: :depth: 2 The NFC Text record for Type 2 Tag sample shows how to use the NFC tag to expose a text record on a Type 2 Tag to NFC polling devices. It uses the NFC Data Exchange Format (NDEF). Requirements ************ The sample supports the following development kits: .. tabs:: .. group-tab:: Simple board variants The following board variants do **not** have DFU capabilities: **S115**: .. list-table:: :header-rows: 1 * - Hardware platform - PCA - Board target * - `nRF54L15 DK`_ - PCA10156 - bm_nrf54l15dk/nrf54l15/cpuapp/s115_softdevice * - `nRF54L15 DK`_ (emulating nRF54L10) - PCA10156 - bm_nrf54l15dk/nrf54l10/cpuapp/s115_softdevice * - `nRF54L15 DK`_ (emulating nRF54L05) - PCA10156 - bm_nrf54l15dk/nrf54l05/cpuapp/s115_softdevice * - `nRF54LM20 DK`_ - PCA10184 - bm_nrf54lm20dk/nrf54lm20a/cpuapp/s115_softdevice **S145**: .. list-table:: :header-rows: 1 * - Hardware platform - PCA - Board target * - `nRF54L15 DK`_ - PCA10156 - bm_nrf54l15dk/nrf54l15/cpuapp/s145_softdevice * - `nRF54L15 DK`_ (emulating nRF54L10) - PCA10156 - bm_nrf54l15dk/nrf54l10/cpuapp/s145_softdevice * - `nRF54L15 DK`_ (emulating nRF54L05) - PCA10156 - bm_nrf54l15dk/nrf54l05/cpuapp/s145_softdevice * - `nRF54LM20 DK`_ - PCA10184 - bm_nrf54lm20dk/nrf54lm20a/cpuapp/s145_softdevice .. group-tab:: MCUboot board variants The following board variants have DFU capabilities: **S115**: .. list-table:: :header-rows: 1 * - Hardware platform - PCA - Board target * - `nRF54L15 DK`_ - PCA10156 - bm_nrf54l15dk/nrf54l15/cpuapp/s115_softdevice/mcuboot * - `nRF54L15 DK`_ (emulating nRF54L10) - PCA10156 - bm_nrf54l15dk/nrf54l10/cpuapp/s115_softdevice/mcuboot * - `nRF54L15 DK`_ (emulating nRF54L05) - PCA10156 - bm_nrf54l15dk/nrf54l05/cpuapp/s115_softdevice/mcuboot * - `nRF54LM20 DK`_ - PCA10184 - bm_nrf54lm20dk/nrf54lm20a/cpuapp/s115_softdevice/mcuboot **S145**: .. list-table:: :header-rows: 1 * - Hardware platform - PCA - Board target * - `nRF54L15 DK`_ - PCA10156 - bm_nrf54l15dk/nrf54l15/cpuapp/s145_softdevice/mcuboot * - `nRF54L15 DK`_ (emulating nRF54L10) - PCA10156 - bm_nrf54l15dk/nrf54l10/cpuapp/s145_softdevice/mcuboot * - `nRF54L15 DK`_ (emulating nRF54L05) - PCA10156 - bm_nrf54l15dk/nrf54l05/cpuapp/s145_softdevice/mcuboot * - `nRF54LM20 DK`_ - PCA10184 - bm_nrf54lm20dk/nrf54lm20a/cpuapp/s145_softdevice/mcuboot The sample also requires a smartphone or tablet. Overview ******** When the sample 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. User interface ************** LED 0: Lit when the device is initialized. LED 2: Indicates whether an NFC field is present. Building and running ******************** This sample is located under :file:`samples/nfc/record_text_t2t/` in the |BMshort| folder structure. For details on how to create, configure, and program a sample, see :ref:`getting_started_with_the_samples`. .. note:: |nfc_nfct_driver_note| Testing ======= After programming the sample to your development kit, complete the following steps to test it: 1. Touch the NFC antenna with the smartphone or tablet and observe that **LED 2** is lit. #. Observe that the smartphone or tablet displays the encoded text (in the most suitable language). #. Move the smartphone or tablet away from the NFC antenna and observe that **LED 2** turns off. Dependencies ************ This sample has the following |BMshort| dependencies: * :ref:`nfc_ndef` * :ref:`nfc_text` In addition, it uses the :ref:`lib_nfc_t2t` from `sdk-nrfxlib`_. See :ref:`lib_nfc` for more information about the NFC libraries.