int ble_gap_set_priv_mode( const ble_addr_t *peer_addr, uint8_t priv_mode )
Set privacy mode for given device.
If device mode is used, then Nimble accepts both the peer's identity address and a resolvable private address.
If network mode is used, then Nimble accepts only resolvable private address.
Parameter | Description |
---|---|
peer_addr | The identity address of the peer for which privacy mode shall be changed. |
priv_mode | The privacy mode. One of: BLE_GAP_PRIVATE_MODE_NETWORK BLE_GAP_PRIVATE_MODE_DEVICE |
Value | Condition |
---|---|
0 | Success. |
Core return code | Unexpected error. |