/* Function for handling the Connection Parameters Module. 
This function will be called for all events in the Connection Parameters Module which are passed to the application.  */
static void on_conn_params_evt(ble_conn_params_evt_t *p_evt)
/* Function for handling the Connection Parameters Module. 
This function will be called for all events in the Connection Parameters Module which are passed to the application.  */
static void on_conn_params_evt(ble_conn_params_evt_t *p_evt)
{
    uint32_t err_code;
    if (p_evt->evt_type == BLE_CONN_PARAMS_EVT_FAILED)
    {
        err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_CONN_INTERVAL_UNACCEPTABLE);
        APP_ERROR_CHECK(err_code);
    }
}