nfc_get_bluetooth_handover_data()
Retrieve Bluetooth connection handover data.
Synopsis:
#include <nfc/nfc.h>
NFC_API nfc_result_t nfc_get_bluetooth_handover_data(nfc_target_t *target, nfc_bluetooth_handover_data_t *bluetooth_data)
Arguments:
- target
-
The NFC target returned from nfc_get_target().
- bluetooth_data
-
The Bluetooth data detail to be retrieved.
Library:
libnfcDescription:
Deprecated:
Use nfc_get_handover_bluetooth_mac_address(), nfc_get_handover_bluetooth_device_name(), and nfc_get_handover_bluetooth_device_class() functions instead, after getting nfc_ndef_message_t from nfc_target_t.
The nfc_get_bluetooth_handover_data() function gets the detail of the Bluetooth connection handover data. The retrieval of the Bluetooth data is dependent on the successful completion of the connection handover. Therefore, the application must wait for the NFC_HANDOVER_COMPLETE_EVENT before using this function.
Returns:
NFC_RESULT_SUCCESS , or one of the following:
- NFC_RESULT_INVALID_PARAMETER : A parameter is invalid.
- NFC_RESULT_BAD_NDEF_FORMAT : The NFC target does not contain a valid NDEF record.