/* Function for receiving and validating notifications received from the Notification Provider.  */
static void on_evt_gattc_notif(ble_ancs_c_t *p_ancs, const ble_evt_t *p_ble_evt)
/* Function for receiving and validating notifications received from the Notification Provider.  */
static void on_evt_gattc_notif(ble_ancs_c_t *p_ancs, const ble_evt_t *p_ble_evt)
{
    const ble_gattc_evt_hvx_t * p_notif = &p_ble_evt->evt.gattc_evt.params.hvx;
    if(p_ble_evt->evt.gattc_evt.conn_handle != p_ancs->conn_handle)
    {
        return;
    }
    if (p_notif->handle == p_ancs->service.notif_source_char.handle_value)
    {
        parse_notif(p_ancs, p_notif->data, p_notif->len);
    }
    else if (p_notif->handle == p_ancs->service.data_source_char.handle_value)
    {
        parse_get_notif_attrs_response(p_ancs, p_notif->data, p_notif->len);
    }
    else
    {
    }
}