Return the MAC address from a Wi-Fi Direct carrier NDEF record.
Synopsis:
#include <nfc/nfc_ndef.h>
NFC_API nfc_result_t nfc_get_handover_wifi_direct_mac_address(const nfc_ndef_record_t *rec, char **mac_addr)
Arguments:
- rec
-
The Wi-Fi Direct carrier NDEF record. Chunked NDEF records are not supported.
- mac_addr
-
The returned Wi-Fi Direct 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 MAC address from a Wi-Fi Direct carrier NDEF record.