nfc_get_handover_bluetooth_device_name()
Return the Bluetooth device name from a Bluetooth carrier NDEF record.
Synopsis:
#include <nfc/nfc_ndef.h>
NFC_API nfc_result_t nfc_get_handover_bluetooth_device_name(const nfc_ndef_record_t *rec, char **device_name)
Arguments:
- rec
-
The Bluetooth carrier NDEF record. Chunked NDEF records are not supported.
- device_name
-
The returned Bluetooth device name. This string must be de-allocated by calling the free() function.
Library:
libnfcDescription:
This function returns the Bluetooth device name from a Bluetooth carrier NDEF record.
Returns:
NFC_RESULT_SUCCESS, or one of the following:
- NFC_RESULT_INVALID_PARAMETER: A parameter is invalid, or the provided NDEF record is a chunked record.
- NFC_RESULT_OUT_OF_MEMORY: The system memory available for the NFC system to complete this operation is insufficient.