bt_rdev_get_type()

Retrieve the remote device type.

Synopsis:

#include <btapi/btdevice.h>
 
int bt_rdev_get_type(const bt_remote_device_t *remote_device)

Since:

BlackBerry 10.0.0

Arguments:

remote_device

A pointer to a remote device structure.

Library:

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

Description:

Requests the Bluetooth type for the remote Bluetooth-enabled device. For more information, see constants prefixed with BT_DEVICE_TYPE_*. NOTE: If the return value is BT_DEVICE_TYPE_UNKNOWN, this indicates that the device is not known on the system, and that other fields in the bt_remote_device_t object may not be valid.

Returns:

The type mask of the remote Bluetooth-enabled device is returned upon success, -1 with the errno set otherwise. Possible errno values include:
  • EINVAL: An invalid value was passed in for remote_device.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus