riot_sys

Function nanocoap_sock_post

Source
pub unsafe extern "C" fn nanocoap_sock_post(
    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 synchronous CoAP (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 @see nanocoap_sock_request_cb on error