pub unsafe extern "C" fn bt_le_per_adv_start(
adv: *mut bt_le_ext_adv,
) -> i32
Expand description
@brief Starts periodic advertising.
Enabling the periodic advertising can be done independently of extended advertising, but both periodic advertising and extended advertising shall be enabled before any periodic advertising data is sent. The periodic advertising and extended advertising can be enabled in any order.
Once periodic advertising has been enabled, it will continue advertising until @ref bt_le_per_adv_stop() has been called, or if the advertising set is deleted by @ref bt_le_ext_adv_delete(). Calling @ref bt_le_ext_adv_stop() will not stop the periodic advertising.
@param adv Advertising set object.
@return Zero on success or (negative) error code otherwise.