GATTS

nRF5 SDK v12.2.0

Functions for handling GATTS write and read requests. More...

Functions

void es_gatts_write_evt_handler ( nrf_ble_escs_t *p_escs, nrf_ble_escs_evt_type_t evt_type, uint16_t val_handle, uint8_t *p_data, uint16_t length)
Function for handling all write requests from the Central. More...
void es_gatts_read_evt_handler ( nrf_ble_escs_t *p_escs, nrf_ble_escs_evt_type_t evt_type, uint16_t val_handle)
Function for handling all read requests from the Central. More...

Detailed Description

Functions for handling GATTS write and read requests.

Function Documentation

void es_gatts_read_evt_handler ( nrf_ble_escs_t * p_escs ,
nrf_ble_escs_evt_type_t evt_type ,
uint16_t val_handle
)

Function for handling all read requests from the Central.

Parameters
[in] p_escs Pointer to the Eddystone Configuration Service.
[in] evt_type Type of event (corresponding to each characteristic in the service that is being read from).
[in] val_handle Value handle field of the characteristic handle of the characteristic that is being read from.
void es_gatts_write_evt_handler ( nrf_ble_escs_t * p_escs ,
nrf_ble_escs_evt_type_t evt_type ,
uint16_t val_handle ,
uint8_t * p_data ,
uint16_t length
)

Function for handling all write requests from the Central.

Parameters
[in] p_escs Pointer to the Eddystone Configuration Service.
[in] evt_type Type of event (corresponding to each characteristic in the service that is being written to).
[in] val_handle Value handle field of the characteristic handle of the characteristic that is being written to.
[in] p_data Pointer to the data to be written.
[in] length Length of the data to be written.