nRF Connect SDK API 2.8.99
|
int nfc_ndef_text_rec_payload_encode | ( | struct nfc_ndef_text_rec_payload * | nfc_rec_text_payload_desc, |
uint8_t * | buff, | ||
uint32_t * | len ) |
#include <include/nfc/ndef/text_rec.h>
Constructor for an NFC NDEF Text record payload.
nfc_rec_text_payload_desc | Pointer to the Text record description. |
buff | Pointer to the payload destination. If NULL, function will calculate the expected size of the Text record payload. |
len | Size of the available memory to write as input. Size of the generated record payload as output. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |