riot_sys

Function nanocoap_request

Source
pub unsafe extern "C" fn nanocoap_request(
    pkt: *mut coap_pkt_t,
    local: *const sock_udp_ep_t,
    remote: *const sock_udp_ep_t,
    len: size_t,
) -> ssize_t
Expand description

@brief Simple synchronous CoAP request

@param[in,out] pkt Packet struct containing the request. Is reused for the response @param[in] local Local UDP endpoint, may be NULL @param[in] remote remote UDP endpoint @param[in] len Total length of the buffer associated with the request

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