In sample code for central devices,, the BLE event handler, on_ble_evt()
, handles the `BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST' by accepting the request.
Is it possible to reject the request?
nRF5 SDK 11.0.0, with PCA10040 EVB
In sample code for central devices,, the BLE event handler, on_ble_evt()
, handles the `BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST' by accepting the request.
Is it possible to reject the request?
nRF5 SDK 11.0.0, with PCA10040 EVB
Respond with sd_ble_gap_conn_param_update()
and pass NULL
for p_conn_params
.
* @param[in] conn_handle Connection handle.
* @param[in] p_conn_params Pointer to desired connection parameters. If NULL is provided on a peripheral role,
* the parameters in the PPCP characteristic of the GAP service will be used instead.
* If NULL is provided on a central role and in response to a @ref BLE_GAP_EVT_CONN_PARAM_UPDATE_REQUEST, the peripheral request will be rejected
sd_ble_gap_conn_param_update(uint16_t conn_handle, const *p_conn_params);