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

◆ bt_mgmt_adv_start()

int bt_mgmt_adv_start ( uint8_t  ext_adv_index,
const struct bt_data *  ext_adv,
size_t  ext_adv_size,
const struct bt_data *  per_adv,
size_t  per_adv_size,
bool  connectable 
)

Create and start advertising for an ACL connection.

Parameters
[in]ext_adv_indexIndex of the advertising set to start.
[in]ext_advThe data to be put in the extended advertisement.
[in]ext_adv_sizeSize of ext_adv.
[in]per_advThe data for the periodic advertisement; can be NULL.
[in]per_adv_sizeSize of per_adv.
[in]connectableSpecify if advertisement should be connectable or not.
Note
To restart advertising, call this function with all 0s and NULL, except for connectable. The same advertising parameters as when bt_mgmt_adv_start was last called will then be used.
Returns
0 if success, error otherwise.