Function riot_sys::gcoap_init

source ·
pub unsafe extern "C" fn gcoap_init() -> kernel_pid_t
Expand description

@brief Initializes the gcoap thread and device

Must call once before first use.

@return PID of the gcoap thread on success. @return -EEXIST, if thread already has been created. @return -EINVAL, if the IP port already is in use.