pub unsafe extern "C" fn nanocoap_sock_get_slice(
sock: *mut nanocoap_sock_t,
path: *const c_char,
blksize: coap_blksize_t,
offset: size_t,
dst: *mut c_void,
len: size_t,
) -> c_int
Expand description
@brief Performs a blockwise coap get request to the specified url, store the response in a buffer.
@param[in] sock socket to use for the request @param[in] path Absolute URL pointer to source path @param[in] blksize sender suggested SZX for the COAP block request @param[in] offset Offset in bytes from the start of the resource @param[in] dst Target buffer @param[in] len Target buffer length
@returns <0 on error @returns -EINVAL if an invalid url is provided @returns size of the response payload on success