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

◆ sd_ble_opt_set()

uint32_t sd_ble_opt_set ( uint32_t opt_id,
ble_opt_t const * p_opt )

#include <ble.h>

Set a BLE option.

This call allows the application to set the value of an option.

Parameters
[in]opt_idOption ID, see BLE_COMMON_OPTS, BLE_GAP_OPTS, and BLE_GATTC_OPTS.
[in]p_optPointer to a ble_opt_t structure containing the option value.
Return values
NRF_SUCCESSOption set successfully.
NRF_ERROR_INVALID_ADDRInvalid pointer supplied.
BLE_ERROR_INVALID_CONN_HANDLEInvalid Connection Handle.
NRF_ERROR_INVALID_PARAMInvalid parameter(s) supplied, check parameter limits and constraints.
NRF_ERROR_INVALID_STATEUnable to set the parameter at this time.
NRF_ERROR_BUSYThe BLE stack is busy or the previous procedure has not completed.
Note
For a complete set of return values see ble_opt_t.