nRF Connect SDK API 2.8.99
|
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.
[in] | oob | Pointer to the LE OOB Record payload descriptor. |
[out] | buf | Pointer to the buffer for the message. |
[in,out] | 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. |