예제 #1
0
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;
}
예제 #2
0
파일: main.c 프로젝트: nikosft/libcoap
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;
}