nRF5 SDK v17.1.0
Data Fields
ble_ans_c_evt_t Struct Reference

Alert Notification Event structure. More...

#include <ble_ans_c.h>

Data Fields

ble_ans_c_evt_type_t evt_type
 
uint16_t conn_handle
 
ble_uuid_t uuid
 
union {
   ble_ans_alert_settings_t   settings
 
   ble_ans_alert_notification_t   alert
 
   uint32_t   error_code
 
   ble_ans_c_service_t   service
 
data
 

Detailed Description

Alert Notification Event structure.

Structure for holding information about the event that should be handled, as well as additional information.

Field Documentation

ble_ans_alert_notification_t ble_ans_c_evt_t::alert

Alert Notification data sent by the server.

uint16_t ble_ans_c_evt_t::conn_handle

Connection handle on which the ANS service was discovered on the peer device. This is filled if the evt_type is BLE_ANS_C_EVT_DISCOVERY_COMPLETE.

uint32_t ble_ans_c_evt_t::error_code

Additional status or error code, if the event is caused by a stack error or GATT status, for example during service discovery.

ble_ans_c_evt_type_t ble_ans_c_evt_t::evt_type

Type of event.

ble_ans_c_service_t ble_ans_c_evt_t::service

Information on the discovered Alert Notification Service. This is filled if the evt_type is BLE_ANS_C_EVT_DISCOVERY_COMPLETE.

ble_ans_alert_settings_t ble_ans_c_evt_t::settings

Setting returned from server on read request.

ble_uuid_t ble_ans_c_evt_t::uuid

UUID of the event in case of an alert or notification.


The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated