nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ bt_le_adv_prov_get_sd()

int bt_le_adv_prov_get_sd ( struct bt_data *  sd,
size_t *  sd_len,
const struct bt_le_adv_prov_adv_state state,
struct bt_le_adv_prov_feedback fb 
)

#include <include/bluetooth/adv_prov.h>

Fill scan response data.

Number of elements in array pointed by sd must be at least equal to bt_le_adv_prov_get_sd_prov_cnt.

Parameters
[out]sdPointer to array to be filled with scan response data.
[in,out]sd_lenValue describing number of elements in the array pointed by sd. The value is then set by the function to number of filled elements.
[in]stateStructure describing advertising state.
[out]fbStructure filled with feedback from scan response data providers.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.