riot_sys

Function nanocoap_sock_get

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

@brief Simple synchronous CoAP (confirmable) GET

@param[in] sock socket to use for the request @param[in] path remote path and query @param[out] buf buffer to write response to @param[in] len length of @p buffer

@returns length of response payload on success @returns @see nanocoap_sock_request_cb on error