S115 SoftDevice for nRF54LS05 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_gap_conn_param_update()

uint32_t sd_ble_gap_conn_param_update ( uint16_t conn_handle,
ble_gap_conn_params_t const * p_conn_params )

#include <ble_gap.h>

Update connection parameters.

In the peripheral role, this will send the corresponding L2CAP request and wait for the central to perform the procedure. Regardless of success or failure, the application will be informed of the result with a BLE_GAP_EVT_CONN_PARAM_UPDATE event.

Events generated
BLE_GAP_EVT_CONN_PARAM_UPDATEResult of the connection parameter update procedure.
Relevant Message Sequence Charts
Peripheral Connection Parameter Update
Parameters
[in]conn_handleConnection handle.
[in]p_conn_paramsPointer 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. This is only allowed if no field in the PPCP characteristic is set to "No specific values indication (0xFFFF)".
Return values
NRF_SUCCESSThe Connection Update procedure has been started successfully.
NRF_ERROR_INVALID_ADDRInvalid pointer supplied.
NRF_ERROR_INVALID_PARAMInvalid parameter(s) supplied, check parameter limits and constraints.
NRF_ERROR_INVALID_STATEEither:
  • Disconnection in progress
  • Link has not been established.
NRF_ERROR_BUSYProcedure already in progress, wait for pending procedures to complete and retry.
BLE_ERROR_INVALID_CONN_HANDLEInvalid connection handle supplied.