| 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_evt_t Struct Reference
Database Discovery

Structure containing the event from the DB discovery module to the application. More...

`#include <ble_db_discovery.h>`

## Data Fields
ble_db_discovery_evt_type_t | evt_type
uint16_t | conn_handle
union {
ble_gatt_db_srv_t discovered_db
uint32_t err_code
} | params

## Detailed Description

Structure containing the event from the DB discovery module to the application.

## Field Documentation

uint16_t ble_db_discovery_evt_t::conn_handle

Handle of the connection for which this event has occurred.

ble_gatt_db_srv_t ble_db_discovery_evt_t::discovered_db

Structure containing the information about the GATT Database at the server. This will be filled when the event type is BLE_DB_DISCOVERY_COMPLETE.

uint32_t ble_db_discovery_evt_t::err_code

nRF Error code indicating the type of error which occurred in the DB Discovery module. This will be filled when the event type is BLE_DB_DISCOVERY_ERROR.

ble_db_discovery_evt_type_t ble_db_discovery_evt_t::evt_type

Type of event.