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

◆ nfc_ndef_ch_msg_le_oob_encode()

int nfc_ndef_ch_msg_le_oob_encode ( const struct nfc_ndef_le_oob_rec_payload_desc oob,
uint8_t *  buf,
size_t *  len 
)

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

Encode an NFC NDEF LE OOB message.

This function encodes an NFC NDEF message into a buffer.

Parameters
[in]oobPointer to the LE OOB Record payload descriptor.
[out]bufPointer to the buffer for the message.
[in,out]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.