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

◆ sd_ble_opt_get()

uint32_t sd_ble_opt_get ( uint32_t opt_id,
ble_opt_t * p_opt )

#include <ble.h>

Get a BLE option.

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

Parameters
[in]opt_idOption ID, see BLE_COMMON_OPTS and BLE_GAP_OPTS.
[out]p_optPointer to a ble_opt_t structure to be filled in.
Return values
NRF_SUCCESSOption retrieved 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 retrieve the parameter at this time.
NRF_ERROR_BUSYThe BLE stack is busy or the previous procedure has not completed.
NRF_ERROR_NOT_SUPPORTEDThis option is not supported.
Note
For a complete set of return values see ble_opt_t.