ble_db_discovery_t

nRF5 SDK v12.1.0

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

#include <ble_db_discovery.h>

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.

  • components/ble/ble_db_discovery/ble_db_discovery.h