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
| Parameter | Description |
|---|---|
| [in] enable | True to enable local privacy, false to disable local privacy. |
| [in] p_privacyParams | Pointer 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 value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully configure privacy parameters. |
| MBA_RES_OOM | Internal memory allocation failure. |
| MBA_RES_INVALID_PARA | Invalid parameters. |
| MBA_RES_BAD_STATE | Privacy parameters cannot be configured while advertising, scanning or creating a connection. |
