| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
ble_db_discovery_t Struct Reference
Database Discovery

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
bool | discovery_in_progress
uint8_t | discoveries_count
uint16_t | conn_handle

## Detailed Description

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.

Warning
  This structure must be zero-initialized.

## Field Documentation

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 if there is a service discovery in progress.

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