static void* _coap_server_thread(void* arg) { (void)arg; msg_init_queue(_server_msg_queue, SERVER_QUEUE_SIZE); puts("Launching server loop"); coap_server_loop(handleData, handleConfig); return NULL; }
int main(void) { puts("RIOT libcoap example application"); puts("Waiting for address autoconfiguration..."); xtimer_sleep(3); puts("Configured network interfaces:"); _netif_config(0, NULL); puts("CoAP server will be initialized"); coap_server_loop(); return 0; }