![]() |
S115 SoftDevice for nRF54LM20 API documentation 10.0.0
|
| uint32_t sd_ble_gap_device_identities_set | ( | ble_gap_id_key_t const *const * | pp_id_keys, |
| ble_gap_irk_t const *const * | pp_local_irks, | ||
| uint8_t | len ) |
#include <ble_gap.h>
Set device identity list.
| [in] | pp_id_keys | Pointer to an array of peer identity addresses and peer IRKs, if NULL the device identity list will be cleared. |
| [in] | pp_local_irks | Pointer to an array of local IRKs. Each entry in the array maps to the entry in pp_id_keys at the same index. To fill in the list with the currently set device IRK for all peers, set to NULL. |
| [in] | len | Length of the device identity list, maximum BLE_GAP_DEVICE_IDENTITIES_MAX_COUNT. |
| Private Advertising |
| Directed Advertising |
| Peripheral Connection Establishment with Private Peer |
| NRF_SUCCESS | The device identity list successfully set/cleared. |
| NRF_ERROR_INVALID_ADDR | The device identity list (or one of its entries) provided is invalid. This code may be returned if the local IRK list also has an invalid entry. |
| BLE_ERROR_GAP_DEVICE_IDENTITIES_IN_USE | The device identity list is in use and cannot be set or cleared. |
| BLE_ERROR_GAP_DEVICE_IDENTITIES_DUPLICATE | The device identity list contains multiple entries with the same identity address. |
| BLE_ERROR_GAP_INVALID_BLE_ADDR | Invalid address type is supplied. |
| BLE_ERROR_GAP_ZERO_IRK_NOT_ALLOWED | An all zeroes IRK is supplied while in BLE_GAP_PRIVACY_MODE_NETWORK_PRIVACY mode. |
| NRF_ERROR_DATA_SIZE | The given device identity list size invalid (zero or too large); this can only return when pp_id_keys is not NULL. |