| 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_ans_c_s Struct Reference
Alert Notification Service Client

Alert Notification structure. This contains various status information for the client. More...

`#include <ble_ans_c.h>`

## Data Fields
ble_ans_c_evt_handler_t | evt_handler
ble_srv_error_handler_t | error_handler
uint16_t | conn_handle
uint8_t | central_handle
uint8_t | service_handle
uint32_t | message_buffer_size
uint8_t * | p_message_buffer
ble_ans_c_service_t | service

## Detailed Description

Alert Notification structure. This contains various status information for the client.

## Field Documentation

uint8_t ble_ans_c_s::central_handle

Handle for the currently connected central if peer is bonded.

uint16_t ble_ans_c_s::conn_handle

Handle of the current connection (as provided by the BLE stack, is BLE_CONN_HANDLE_INVALID if not in a connection).

ble_srv_error_handler_t ble_ans_c_s::error_handler

Function to be called in case of an error.

ble_ans_c_evt_handler_t ble_ans_c_s::evt_handler

Event handler to be called for handling events in the Alert Notification Client Application.

uint32_t ble_ans_c_s::message_buffer_size

Size of message buffer to hold the additional text messages received on notifications.

uint8_t* ble_ans_c_s::p_message_buffer

Pointer to the buffer to be used for additional text message handling.

ble_ans_c_service_t ble_ans_c_s::service

Struct to store the different handles and UUIDs related to the service.

uint8_t ble_ans_c_s::service_handle

Handle to the service in the database to use for this instance.