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

◆ ble_adv_allow_list_reply()

uint32_t ble_adv_allow_list_reply ( struct ble_adv * ble_adv,
const ble_gap_addr_t * gap_addrs,
uint32_t addr_cnt,
const ble_gap_irk_t * gap_irks,
uint32_t irk_cnt )

#include <ble_adv.h>

Set an allow list for fast and slow advertising.

The allow list must be set by the application upon receiving BLE_ADV_EVT_ALLOW_LIST_REQUEST Without the allow list, the allow list advertising for fast and slow modes will not be run.

Parameters
[in]ble_advAdvertising Module instance.
[in]gap_addrsThe list of GAP addresses.
[in]addr_cntThe number of GAP addresses.
[in]gap_irksThe list of peer IRKs.
[in]irk_cntThe number of peer IRKs.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_INVALID_STATEUnexpected allow list reply. No ongoing request for allow list.
NRF_ERROR_NULLble_adv is NULL.