Retrieve the class of device information for the local Bluetooth-enabled device.
Synopsis:
#include <btapi/btdevice.h>
int bt_ldev_get_device_class(const bt_deviceclassmode_t class_type)
Arguments:
- class_type
-
The type of CoD information that is being requested.
Library:
libbtapi (For the qcc command, use the -l btapi option to link against this library)
Description:
This API retrieves one of a number of class of device data items (see bt_deviceclassmode_t).
Returns:
The device class value is returned upon success,
-1 with the
errno set otherwise. Any
errno value other than the following indicates that a system error has occurred:
- ENOMEM: There was insufficient memory to allocate required structures.
- ENOENT: A required data entry was not found (internal error).
- EPERM: There was an error accessing required system data (internal error).