nfc_get_ndef_record_payload()

Get the payload of a NDEF record.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_get_ndef_record_payload(const nfc_ndef_record_t *rec, uchar_t **payload, size_t *payload_length)

Since:

BlackBerry 10.0.0

Arguments:

rec

The NDEF record.

payload

The returned payload.

payload_length

The returned payload length.

Library:

libnfc (For the qcc command, use the -l nfc option to link against this library)

Description:

This function returns the payload associated with the NDEF record.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate an invalid argument.