pub unsafe extern "C" fn bt_le_ext_adv_create(
param: *const bt_le_adv_param,
cb: *const bt_le_ext_adv_cb,
adv: *mut *mut bt_le_ext_adv,
) -> i32
Expand description
@brief Create advertising set.
Create an instance of an independent advertising set with its own parameters and data. The advertising set remains valid until deleted with @ref bt_le_ext_adv_delete. Advertising parameters can be updated with @ref bt_le_ext_adv_update_param, and advertising can be started with @ref bt_le_ext_adv_start.
@note The number of supported extended advertising sets can be controlled by @kconfig{CONFIG_BT_EXT_ADV_MAX_ADV_SET}.
@param[in] param Advertising parameters. @param[in] cb Callback struct to notify about advertiser activity. Can be NULL. Must point to valid memory during the lifetime of the advertising set. @param[out] adv Valid advertising set object on success.
@return Zero on success or (negative) error code otherwise.