Function esp_idf_sys::ble_eddystone_set_adv_data_url

source ·
pub unsafe extern "C" fn ble_eddystone_set_adv_data_url(
    adv_fields: *mut ble_hs_adv_fields,
    url_scheme: u8,
    url_body: *mut c_char,
    url_body_len: u8,
    suffix: u8,
    measured_power: i8,
) -> c_int
Expand description

Configures the device to advertise Eddystone URL beacons.

@param adv_fields The base advertisement fields to transform into an eddystone beacon. All configured fields are preserved; you probably want to clear this struct before calling this function. @param url_scheme The prefix of the URL; one of the BLE_EDDYSTONE_URL_SCHEME values. @param url_body The middle of the URL. Don’t include the suffix if there is a suitable suffix code. @param url_body_len The string length of the url_body argument. @param url_suffix The suffix of the URL; one of the BLE_EDDYSTONE_URL_SUFFIX values; use BLE_EDDYSTONE_URL_SUFFIX_NONE if the suffix is embedded in the body argument. @param measured_power The Measured Power (RSSI value at 0 Meter).

@return 0 on success; BLE_HS_EBUSY if advertising is in progress; BLE_HS_EMSGSIZE if the specified data is too large to fit in an advertisement; Other nonzero on failure.