![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
Bluetooth LE database discovery. More...
#include <bm/bluetooth/ble_db_discovery.h>
Data Fields | |
| struct ble_gatt_db_srv | services [CONFIG_BLE_DB_DISCOVERY_MAX_SRV] |
| Information related to the current service being discovered. | |
| ble_uuid_t | registered_uuids [CONFIG_BLE_DB_DISCOVERY_MAX_SRV] |
| UUID of registered handlers. | |
| ble_db_discovery_evt_handler | evt_handler |
| Instance event handler. | |
| const struct ble_gq * | gatt_queue |
| Bluetooth LE GATT Queue instance. | |
| uint32_t | num_registered_uuids |
| The number of UUIDs registered with the DB Discovery library. | |
| uint8_t | srv_count |
| Number of services at the peer's GATT database. | |
| uint8_t | curr_char_idx |
| Index of the current characteristic being discovered. | |
| uint8_t | curr_srv_idx |
| Index of the current service being discovered. | |
| uint8_t | discoveries_count |
| Number of service discoveries made, both successful and unsuccessful. | |
| bool | discovery_in_progress |
| Variable to indicate whether there is a service discovery in progress. | |
| uint16_t | conn_handle |
| Connection handle on which the discovery is started. | |
| uint32_t | pending_usr_evt_idx |
| The index to the pending user event array, pointing to the last added pending user event. | |
| struct ble_db_discovery_evt | pending_usr_evts [CONFIG_BLE_DB_DISCOVERY_MAX_SRV] |
| Whenever a discovery related event is to be raised, it is stored in this array first. When all registered services have been attempted discovered, all pending events are sent to the user. | |
Bluetooth LE database discovery.