mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-18 05:39:04 +03:00
40 lines
743 B
C
40 lines
743 B
C
/*
|
|
* SPDX-FileCopyrightText: 2015 Freie Universität Berlin
|
|
* SPDX-FileCopyrightText: 2018 Inria
|
|
* SPDX-License-Identifier: LGPL-2.1-only
|
|
*/
|
|
|
|
/**
|
|
* @ingroup tests
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Test for libcoap
|
|
*
|
|
* @author Raul Fuentes <raul.fuentes-samaniego@inria.fr>
|
|
*
|
|
* @}
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "shell.h"
|
|
#include "msg.h"
|
|
|
|
#include "libcoap-test.h"
|
|
#include "coap3/coap.h"
|
|
|
|
#define MAIN_QUEUE_SIZE (8)
|
|
static msg_t _main_msg_queue[MAIN_QUEUE_SIZE];
|
|
|
|
int main(void)
|
|
{
|
|
/* we need a message queue for the thread running the shell in order to
|
|
* receive potentially fast incoming networking packets */
|
|
msg_init_queue(_main_msg_queue, MAIN_QUEUE_SIZE);
|
|
|
|
libcoap_test_run();
|
|
|
|
return 0;
|
|
}
|