Structure for holding the information related to the GATT database at the server. More...
#include <ble_db_discovery.h>
Data Fields | |
ble_gatt_db_srv_t | services [6] |
uint8_t | srv_count |
uint8_t | curr_char_ind |
uint8_t | curr_srv_ind |
uint8_t | discoveries_count |
bool | discovery_in_progress |
uint16_t | conn_handle |
uint32_t | pending_usr_evt_index |
ble_db_discovery_user_evt_t | pending_usr_evts [6] |
Structure for holding the information related to the GATT database at the server.
This module identifies a remote database. Use one instance of this structure per connection.
uint16_t ble_db_discovery_t::conn_handle |
Connection handle on which the discovery is started.
uint8_t ble_db_discovery_t::curr_char_ind |
Index of the current characteristic being discovered. This is intended for internal use during service discovery.
uint8_t ble_db_discovery_t::curr_srv_ind |
Index of the current service being discovered. This is intended for internal use during service discovery.
uint8_t ble_db_discovery_t::discoveries_count |
Number of service discoveries made, both successful and unsuccessful.
bool ble_db_discovery_t::discovery_in_progress |
Variable to indicate whether there is a service discovery in progress.
uint32_t ble_db_discovery_t::pending_usr_evt_index |
The index to the pending user event array, pointing to the last added pending user event.
ble_db_discovery_user_evt_t ble_db_discovery_t::pending_usr_evts[6] |
Whenever a discovery related event is to be raised to a user module, it is stored in this array first. When all expected services have been discovered, all pending events are sent to the corresponding user modules.
ble_gatt_db_srv_t ble_db_discovery_t::services[6] |
Information related to the current service being discovered. This is intended for internal use during service discovery.
uint8_t ble_db_discovery_t::srv_count |
Number of services at the peer's GATT database.