1.1.2.1.1.4.55 BLE_GAP_SetLocalPrivacy

C

uint16_t BLE_GAP_SetLocalPrivacy(bool enable, BLE_GAP_LocalPrivacyParams_T *p_privacyParams);

Description

Configure the privacy parameters.

Note

Local Privacy settings cannot be changed while advertising, scanning or creating connection.

Parameters

ParameterDescription
[in] enableTrue to enable local privacy, false to disable local privacy.
[in] p_privacyParamsPointer to BLE_GAP_LocalPrivacyParams_T structure buffer. If enable local privacy, the configurations must be legal. If disable local privacy, this parameter can be NULL or not.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully configure privacy parameters.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters.
MBA_RES_BAD_STATEPrivacy parameters cannot be configured while advertising, scanning or creating a connection.