pub unsafe extern "C" fn nanocoap_sock_request(
sock: *mut nanocoap_sock_t,
pkt: *mut coap_pkt_t,
len: size_t,
) -> ssize_t
Expand description
@brief Simple synchronous CoAP request
@param[in] sock socket to use for the request @param[in,out] pkt Packet struct containing the request. Is reused for the response @param[in] len Total length of the buffer associated with the request
@returns length of response on success @returns <0 on error