/* Handle write events to the control point cccd.  */
static void on_lncp_cccd_write(ble_lncp_t *p_lncp, ble_gatts_evt_write_t const *p_evt_write)
/* Handle write events to the control point cccd.  */
static void on_lncp_cccd_write(ble_lncp_t *p_lncp, ble_gatts_evt_write_t const *p_evt_write)
{
    if (p_evt_write->len == BLE_CCCD_VALUE_LEN)
    {
        p_lncp->is_ctrlpt_indication_enabled = ble_srv_is_indication_enabled(p_evt_write->data);
    }
}