nfc_create_external_type_record()

Create a NFC Forum External type NDEF record.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_create_external_type_record(const char *domain_name, const char *type_name, const uchar_t *payload, size_t payload_len, nfc_ndef_record_t **rec)

Since:

BlackBerry 10.0.0

Arguments:

domain_name

The domain name of the organization responsible for managing the name space for the record type.

type_name

An application-specific record type that is valid for the namespace defined by the domain_name argument.

payload

Binary content of the application specific type, which is to be set as the NDEF record's payload.

payload_len

The byte length of the payload.

rec

The returned external type NDEF record.

Library:

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

Description:

This function creates an NFC Forum External type NDEF record.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_INVALID_PARAMETER to indicate that a parameter is invalid.