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);
}
Hi,
When I use notify every 3 seconds to send 8bytes data to phone(Like heart rate service). About 10 minutes,I will get a "on_conn_params_evt" ,event type is BLE_CONN_PARAMS_EVT_FAILED
I have two questions
-
Why am I receive this event?
-
When I get this event, it will do "sd_ble_gap_disconnect" function and error_code is not successful,then device will reset because APP_ERROR_CHECK function. Why error_code is not successful?
Thank you.
Elliot.