riot_sys::bindgen

Function bluetil_ad_add

Source
pub unsafe extern "C" fn bluetil_ad_add(
    ad: *mut bluetil_ad_t,
    type_: u8,
    data: *const c_void,
    data_len: size_t,
) -> c_int
Expand description

@brief Add a new field to the given advertising data

@param[out] ad advertising data descriptor @param[in] type field type to add @param[in] data payload for the field @param[in] data_len length of the payload in bytes

@return BLUETIL_AD_OK if the new field was added @return BLUETIL_AD_NOMEM if there is not enough space to write add field