nfc_get_handover_bluetooth_mac_address()

Return the Bluetooth MAC address from a Bluetooth carrier NDEF record.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_get_handover_bluetooth_mac_address(const nfc_ndef_record_t *rec, char **mac_addr)

Since:

BlackBerry 10.0.0

Arguments:

rec

The Bluetooth carrier NDEF record. Chunked NDEF records are not supported.

mac_addr
The returned Bluetooth MAC address. Free the memory that is allocated for this string by calling the free() function. A valid MAC address must have the following format:
  • 00:00:00:00:00:00\0
  • 18 bytes in size
  • NULL terminated
  • 2 HEX digits per byte
  • HEX digits at the end of address string

Library:

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

Description:

This function returns the Bluetooth MAC address from a Bluetooth carrier NDEF record.

Returns:

NFC_RESULT_SUCCESS, or one of the following: