Function bt_le_per_adv_set_data

Source
pub unsafe extern "C" fn bt_le_per_adv_set_data(
    adv: *const bt_le_ext_adv,
    ad: *const bt_data,
    ad_len: usize,
) -> i32
Expand description

@brief Set or update the periodic advertising data.

The periodic advertisement data can only be set or updated on an extended advertisement set which is neither scannable, connectable nor anonymous (meaning, the advertising options @ref BT_LE_ADV_OPT_SCANNABLE, @ref BT_LE_ADV_OPT_CONNECTABLE and @ref BT_LE_ADV_OPT_ANONYMOUS cannot be set for @p adv).

@param adv Advertising set object. @param ad Advertising data. @param ad_len Advertising data length.

@return Zero on success or (negative) error code otherwise.