Function riot_sys::suit_handle_url

source ·
pub unsafe extern "C" fn suit_handle_url(url: *const c_char) -> c_int
Expand description

@brief Trigger a SUIT update

@note Make sure the thread calling this function has enough stack space to fit a whole flash page.

This function accesses global state shared with @ref suit_handle_manifest_buf; only one of those may be called at the same time. You may use @ref suit_worker_trigger instead, which manages locking and also does away with the stack space requirement by being executed on an own stack.

@param[in] url url pointer containing the full coap url to the manifest

@return 0 on success <0 on error