nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ pm_device_identities_list_set()

uint32_t pm_device_identities_list_set ( const uint16_t * peers,
uint32_t peer_cnt )

#include <peer_manager.h>

Function for setting and clearing the device identities list.

Note
When entering directed advertising, make sure the active identities list does not contain peers that have no Central Address Resolution. See pm_peer_id_list with skip_id PM_PEER_ID_LIST_SKIP_NO_CAR.
Parameters
[in]peersThe peers to add to the device identities list. Pass NULL to clear the device identities list.
[in]peer_cntThe number of peers. Pass zero to clear the device identities list.
Return values
NRF_SUCCESSIf the device identities list was successfully set or cleared.
NRF_ERROR_NOT_FOUNDIf a peer is invalid or its data could not be found in non-volatile storage.
BLE_ERROR_GAP_INVALID_BLE_ADDRIf a peer has an address that cannot be used for allow listing.
BLE_ERROR_GAP_DEVICE_IDENTITIES_IN_USEIf the device identities list is in use and cannot be set.
NRF_ERROR_INVALID_STATEIf the Peer Manager is not initialized.
NRF_ERROR_NOT_SUPPORTEDIf using a SoftDevice that does not support device identities.