BLE_GAP_SetLocalPrivacy
C
uint16_t BLE_GAP_SetLocalPrivacy(bool enable, BLE_GAP_LocalPrivacyParams_T *p_privacyParams);Description
Configures privacy parameters.
Note
Local Privacy settings cannot be changed while advertising, scanning, or creating a connection.
Parameters
| Parameter | Description |
|---|---|
| [in] enable | True to enable local privacy, false to disable it. |
| [in] p_privacyParams | Pointer to the BLE_GAP_LocalPrivacyParams_T structure containing the privacy configurations. If enabling local privacy, the configurations must be valid. If disabling local privacy, this parameter can be NULL. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully configures privacy parameters. |
| MBA_RES_OOM | Internal memory allocation failure occurred. |
| MBA_RES_INVALID_PARA | The parameters provided are invalid. |
| MBA_RES_BAD_STATE | Privacy parameters cannot be configured while advertising, scanning, or creating a connection. |
