nfc_get_handover_bluetooth_device_class()

Return the Bluetooth class of device information from a Bluetooth carrier NDEF record.

Synopsis:

#include <nfc/nfc_ndef.h>
 
NFC_API nfc_result_t nfc_get_handover_bluetooth_device_class(const nfc_ndef_record_t *rec, unsigned int *device_class)

Since:

BlackBerry 10.0.0

Arguments:

rec

The Bluetooth carrier NDEF record. Chunked NDEF records are not supported.

device_class

The returned Bluetooth class of device value.

Library:

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

Description:

This function returns the Bluetooth class of device information from a Bluetooth carrier NDEF record.

Returns:

NFC_RESULT_SUCCESS, otherwise NFC_RESULT_INVALID_PARAMETER to indicate that a parameter is invalid, or that the provided NDEF record is chunked.