![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t pm_privacy_set | ( | const ble_gap_privacy_params_t * | privacy_params | ) |
#include <peer_manager.h>
Configure privacy settings.
The privacy settings cannot be configured while advertising, scanning, or while connected.
| [in] | privacy_params | Privacy settings. |
| NRF_SUCCESS | If the privacy settings were configured successfully. |
| NRF_ERROR_NULL | If privacy_params is NULL. |
| NRF_ERROR_BUSY | If the operation could not be performed at this time. Process SoftDevice events and retry. |
| NRF_ERROR_INVALID_PARAM | If the address type is invalid. |
| NRF_ERROR_INVALID_STATE | If this function is called while Bluetooth LE roles using privacy are enabled. |
| NRF_ERROR_INVALID_STATE | If the Peer Manager is not initialized. |