This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Will the softdevice (s110) inform the application when a characteristic is read?

I am running a GATT server with multiple proprietary characteristics. I need to perform an action when some of these characteristics are read. They are read-only characteristics.

I am tempted to use BLE_GATTC_EVT_READ_RSP in my on_ble_evt handler, but something tells me that will only fire if my gatt server were to request information.

Desired operation:

static void on_ble_evt(ble_evt_t * p_ble_evt)
{
    uint32_t                         err_code = NRF_SUCCESS;
    static ble_gap_evt_auth_status_t m_auth_status;
    ble_gap_enc_info_t *             p_enc_info;
    
    switch (p_ble_evt->header.evt_id)
    {
			case <CLIENT (PHONE) READ A CHARACTERISTIC>: 
				{ filter on attribute handle/value and perform action }
				break;
    }
}
Parents Reply Children
No Data
Related