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)

Arguments:

rec

The Bluetooth carrier NDEF record.

mac_addr

The returned Bluetooth MAC address. This string must be de-allocated by calling the free() function. A valid MAC address is in the format of 00:00:00:00:00:00\0. Specifically, the MAC address must have the following format:

  • 18 bytes in size
  • NULL terminated
  • 2 HEX digits per byte
  • HEX digits at the end of address string

Library:

libnfc

Description:

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

Returns:

NFC_RESULT_SUCCESS when the function completes successfully; otherwise one of the following values is returned: