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

◆ bt_mgmt_adv_buffer_put()

int bt_mgmt_adv_buffer_put ( struct bt_data *const  adv_buf,
uint32_t *  index,
size_t  adv_buf_vacant,
size_t  data_len,
uint8_t  type,
void *  data 
)

Load advertising data into an advertising buffer.

Parameters
[out]adv_bufPointer to the advertising buffer to load.
[in,out]indexNext free index in the advertising buffer.
[in]adv_buf_vacantNumber of free advertising buffers.
[in]data_lenLength of the data.
[in]typeType of the data.
[in]dataData to store in the buffer, can be a pointer or value.
Returns
0 if success, error otherwise.