nfc_create_ndef_message_from_bytes()

Create an NDEF message from a byte array.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_create_ndef_message_from_bytes(const uchar_t *bytes, size_t byte_length, nfc_ndef_message_t **msg)

Since:

BlackBerry 10.0.0

Arguments:

bytes

The NDEF message byte array.

byte_length

The byte length of the byte array.

msg

The returned NDEF message. This message must be disposed of by calling nfc_delete_ndef_message() when no no longer required.

Library:

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

Description:

This function creates an NDEF message from a byte array.

Returns:

NFC_RESULT_SUCCESS, or one of the following: