Retrieve a list of Bluetooth-enabled devices by GATT service.
#include <btapi/btdevice.h>
bt_remote_device_t** bt_disc_retrieve_by_service_gatt(const char *service_uuid, int *device_count_ptr)
BlackBerry 10.0.0
Specifies the Bluetooth GATT service UUID as a printable string.
(Optional) A pointer to an integer to store the number of retrieved devices. If you do not want to use this value, provide a value of NULL.
int device_count; struct bt_remote_device_t **remote_device_array; if( ( remote_device_array = bt_disc_retrieve_by_service_gatt("0x1101", &device_count)) != NULL ) { // do work with the devices bt_rdev_free_array( remote_device_arry ); }