nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nfc_t4t_ndef_staticpayload_set()

int nfc_t4t_ndef_staticpayload_set ( const uint8_t *  emulation_buffer,
size_t  buffer_length 
)

#include <nfc/include/nfc_t4t_lib.h>

Set emulation buffer and content for an NDEF Tag emulation that is Read-Only.

The buffer needs to be kept accessible for the lifetime of the emulation. Since no write access is done to the buffer, the content could reside in flash memory.

Parameters
emulation_bufferConst buffer pointer
buffer_lengthLength of contained NDEF payload message
Return values
0Success.
-NRF_EINVALInvalid argument (for example, wrong data length, NULL pointer).
-NRF_EOPNOTSUPPEmulation is in running stated.