Declaration of en_text_rec in NRF52 NFC Record text Example [closed]

Ram94 gravatar image

asked 2017-07-17 18:42:38 +0200

updated 2017-07-17 18:43:12 +0200

    static void en_record_add(nfc_ndef_msg_desc_t * p_ndef_msg_desc)
{
    /** @snippet [NFC text usage_1] */
    uint32_t             err_code;
    static const uint8_t en_payload[] =
                  {'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd', '!'};
    static const uint8_t en_code[] = {'e', 'n'};

    NFC_NDEF_TEXT_RECORD_DESC_DEF(en_text_rec,
                                  UTF_8,
                                  en_code,
                                  sizeof(en_code),
                                  en_payload,
                                  sizeof(en_payload));
   /** @snippet [NFC text usage_1] */

    err_code = nfc_ndef_msg_record_add(p_ndef_msg_desc,
                                       &NFC_NDEF_TEXT_RECORD_DESC(en_text_rec));
    APP_ERROR_CHECK(err_code);

}

In this above example, where can i find the declaration of the en_text_rec ?? I want to add a text message record to the launch app record NFC example for the NRF52.

edit retag flag offensive reopen delete report spam

Closed as "the question is answered, right answer was accepted" by Ramkumar at 2017-07-18 02:01:06 +0200