nRF Connect SDK API 2.8.99
|
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.
ndef_msg_desc | Pointer to the message descriptor. |
msg_buffer | Pointer to the message destination. If NULL, function will calculate the expected size of the message. |
msg_len | Size of the available memory for the message as input. Size of the generated message as output. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |