Nordic stack and drivers for the mbed BLE API

Dependents:   idd_hw5_bleFanProto

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

ble_db_discovery_t Struct Reference

ble_db_discovery_t Struct Reference
[Structures]

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 [BLE_DB_DISCOVERY_MAX_SRV]
 Information related to the current service being discovered.
uint16_t conn_handle
 Connection handle as provided by the SoftDevice.
uint8_t srv_count
 Number of services at the peers GATT database.
uint8_t curr_char_ind
 Index of the current characteristic being discovered.
uint8_t curr_srv_ind
 Index of the current service being discovered.
bool discovery_in_progress
 Variable to indicate if there is a service discovery in progress.

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.

Definition at line 109 of file ble_db_discovery.h.


Field Documentation

uint16_t conn_handle

Connection handle as provided by the SoftDevice.

Definition at line 112 of file ble_db_discovery.h.

uint8_t curr_char_ind

Index of the current characteristic being discovered.

This is intended for internal use during service discovery.

Definition at line 114 of file ble_db_discovery.h.

uint8_t curr_srv_ind

Index of the current service being discovered.

This is intended for internal use during service discovery.

Definition at line 115 of file ble_db_discovery.h.

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

Definition at line 116 of file ble_db_discovery.h.

ble_db_discovery_srv_t services[BLE_DB_DISCOVERY_MAX_SRV]

Information related to the current service being discovered.

This is intended for internal use during service discovery.

Definition at line 111 of file ble_db_discovery.h.

uint8_t srv_count

Number of services at the peers GATT database.

Definition at line 113 of file ble_db_discovery.h.