![]() |
S145 SoftDevice for nRF54LM20 API documentation 10.0.0
|
| 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.
| [in] | opt_id | Option ID, see BLE_COMMON_OPTS, BLE_GAP_OPTS, and BLE_GATTC_OPTS. |
| [in] | p_opt | Pointer to a ble_opt_t structure containing the option value. |
| NRF_SUCCESS | Option set successfully. |
| NRF_ERROR_INVALID_ADDR | Invalid pointer supplied. |
| BLE_ERROR_INVALID_CONN_HANDLE | Invalid Connection Handle. |
| NRF_ERROR_INVALID_PARAM | Invalid parameter(s) supplied, check parameter limits and constraints. |
| NRF_ERROR_INVALID_STATE | Unable to set the parameter at this time. |
| NRF_ERROR_BUSY | The BLE stack is busy or the previous procedure has not completed. |