![]() |
S115 SoftDevice for nRF54LS05 API documentation 10.0.0
|
| uint32_t sd_ble_gap_privacy_set | ( | ble_gap_privacy_params_t const * | p_privacy_params | ) |
#include <ble_gap.h>
Set privacy settings.
| [in] | p_privacy_params | Privacy settings. |
| Private Advertising |
| Directed Advertising |
| NRF_SUCCESS | Set successfully. |
| NRF_ERROR_BUSY | The stack is busy, process pending events and retry. |
| BLE_ERROR_GAP_INVALID_BLE_ADDR | Invalid address type is supplied. |
| NRF_ERROR_INVALID_ADDR | The pointer to privacy settings is NULL or invalid. Otherwise, the p_device_irk pointer in privacy parameter is an invalid pointer. |
| NRF_ERROR_INVALID_PARAM | Out of range parameters are provided. |
| BLE_ERROR_GAP_ZERO_IRK_NOT_ALLOWED | BLE_GAP_PRIVACY_MODE_NETWORK_PRIVACY is requested while an all zeroes IRK is in the device identity list. |
| NRF_ERROR_INVALID_STATE | Privacy settings cannot be changed while advertising. |