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

◆ broadcast_source_ext_adv_populate()

int broadcast_source_ext_adv_populate ( uint8_t  big_index,
bool  fixed_id,
uint32_t  broadcast_id,
struct broadcast_source_ext_adv_data ext_adv_data,
struct bt_data *  ext_adv_buf,
size_t  ext_adv_buf_vacant 
)

Populate the extended advertising data buffer.

Parameters
[in]big_indexIndex of the Broadcast Isochronous Group (BIG) to get advertising data for.
[in]fixed_idFlag to indicate if the broadcast ID will be random or not.
[in]broadcast_idBroadcast ID to be used in the advertising data if fixed_id is set to true. The broadcast ID is three octets long.
[in]ext_adv_dataPointer to the extended advertising buffers.
[out]ext_adv_bufPointer to the bt_data used for extended advertising.
[out]ext_adv_buf_vacantPointer to unused size of ext_adv_buf.
Returns
Negative values for errors or number of elements added to ext_adv_buf.