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

ParameterDescription
[in] enableTrue to enable local privacy, false to disable it.
[in] p_privacyParamsPointer 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 valueDescription
MBA_RES_SUCCESSSuccessfully configures privacy parameters.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_INVALID_PARAThe parameters provided are invalid.
MBA_RES_BAD_STATEPrivacy parameters cannot be configured while advertising, scanning, or creating a connection.