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

No BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST event

Hi, 

      Add BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST event handle at ble_lbs service in example of ble_app_blinky. but when client read the characteristics 1524 or 1525, no BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST  report in ble_lbs_on_ble_evt? why? And How to implement charateristics read operation?

void ble_lbs_on_ble_evt(ble_evt_t const * p_ble_evt, void * p_context)
{
    ble_lbs_t * p_lbs = (ble_lbs_t *)p_context;

    switch (p_ble_evt->header.evt_id)
    {
        case BLE_GATTS_EVT_WRITE:
            on_write(p_lbs, p_ble_evt);
            break;
        case BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST:
            NRF_LOG_INFO("ON W_AUTHORIZE_REQUEST");
            on_read(p_lbs, p_ble_evt);
            break;
        default:
            // No implementation needed.
            break;
    }
}
Post

Related