riot_sys

Function nanocoap_sock_post_non

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

@brief Simple non-confirmable POST

@param[in] sock socket to use for the request @param[in] path remote path and query @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 if the request was sent and no response buffer was provided, independently of success (because no response is requested in that case) @returns @see nanocoap_sock_request_cb on error