nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ nfc_ndef_msg_encode()

int nfc_ndef_msg_encode ( struct nfc_ndef_msg_desc const *  ndef_msg_desc,
uint8_t *  msg_buffer,
uint32_t *  msg_len 
)

#include <include/nfc/ndef/msg.h>

Encode an NDEF message.

This function encodes an NDEF message according to the provided message descriptor.

Parameters
ndef_msg_descPointer to the message descriptor.
msg_bufferPointer to the message destination. If NULL, function will calculate the expected size of the message.
msg_lenSize of the available memory for the message as input. Size of the generated message as output.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.