ble_gap_set_priv_mode() function
Set privacy mode for specified peer device
Arguments
peer_addr
Peer device address
priv_mode
Privacy mode to be used. Can be one of following constants: - BLE_GAP_PRIVATE_MODE_NETWORK - BLE_GAP_PRIVATE_MODE_DEVICE
Return value
0 on success; nonzero on failure.