riot_sys

Function nanocoap_server

Source
pub unsafe extern "C" fn nanocoap_server(
    local: *mut sock_udp_ep_t,
    buf: *mut u8,
    bufsize: size_t,
) -> c_int
Expand description

@brief Start a nanocoap server instance

This function only returns if there’s an error binding to @p local, or if receiving of UDP packets fails.

@param[in] local local UDP endpoint to bind to @param[in] buf input buffer to use @param[in] bufsize size of @p buf

@returns -1 on error