bt_rdev_get_le_info()

Retrieve the low energy information.

Synopsis:

#include <btapi/btdevice.h>
 
int bt_rdev_get_le_info(const bt_remote_device_t *remote_device, uint16_t *appearance, uint8_t *flags, uint8_t *connectable)

Since:

BlackBerry 10.0.0

Arguments:

remote_device

A pointer to the remove device structure.

appearance

The appearance flag for the remote device.

flags

A bit mask containing various low energy flags.

connectable

The connectable status of the remote device.

Library:

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

Description:

Various low energy information can be retrieved from a Bluetooth- enabled device. All arguments provided as part of this call are pointers to a buffer results are written to. If you do not require a specific piece of information, provide a value of NULL for the argument.

Returns:

0 is returned upon success, -1 with the errno set otherwise. Possible errno values include:
  • EINVAL: An invalid value was passed in for remote_device.
  • ENOTSUP: The remote device does not contain low energy information.

Last modified: 2014-05-14



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

comments powered by Disqus