nRF51 SDK - S120 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
ble_db_discovery_t Struct Reference

Structure for holding the information related to the GATT database at the server. More...

#include <ble_db_discovery.h>

Data Fields

ble_db_discovery_srv_t services [2]
 
uint16_t conn_handle
 
uint8_t srv_count
 
uint8_t curr_char_ind
 
uint8_t curr_srv_ind
 
bool discovery_in_progress
 

Detailed Description

Structure for holding the information related to the GATT database at the server.

This structure will be used to identify an instance of this module. For example, there can be one instance of this module per connection. If there are multiple connections, that would mean that there are multiple instances of this structure each containing the information about the GATT Database at the server in that connection.

Field Documentation

uint16_t ble_db_discovery_t::conn_handle

Connection handle as provided by the SoftDevice.

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.

bool ble_db_discovery_t::discovery_in_progress

Variable to indicate if there is a service discovery in progress.

ble_db_discovery_srv_t ble_db_discovery_t::services[2]

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 peers GATT database.