nfc_get_handover_wifi_direct_device_type()

Return the device type from a Wi-Fi Direct carrier NDEF record.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

rec

The Wi-Fi Direct carrier NDEF record. Chunked NDEF records are not supported.

device_type

The returned Wi-Fi Direct device type. The device type can be a string, an empty string (if the device type defined in the record has a length of 0), or a NULL pointer (if no device type is defined in the record). Free the memory that is allocated for this string by calling the free() function.

Library:

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

Description:

This function returns the device type from a Wi-Fi Direct carrier NDEF record.

Returns:

NFC_RESULT_SUCCESS, or one of the following: