riot_sys::bindgen

Function nanocoap_sock_post_url

Source
pub unsafe extern "C" fn nanocoap_sock_post_url(
    url: *const c_char,
    request: *const c_void,
    len: size_t,
    response: *mut c_void,
    len_max: size_t,
) -> ssize_t
Expand description

@brief Simple synchronous CoAP (confirmable) POST to URL

@param[in] url Absolute URL pointer to source path @param[in] request buffer containing the payload @param[in] len length of the payload to send @param[out] response buffer for the response, may be NULL @param[in] len_max length of @p response

@returns length of response payload on success @returns <0 on error