mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
40 lines
735 B
C
40 lines
735 B
C
/*
|
|
* SPDX-FileCopyrightText: 2015 Freie Universität Berlin
|
|
* SPDX-FileCopyrightText: 2018 Inria
|
|
* SPDX-License-Identifier: LGPL-2.1-only
|
|
*/
|
|
|
|
/**
|
|
* @ingroup examples
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Example test application for libcoap
|
|
*
|
|
* @author Raul Fuentes <>
|
|
*
|
|
* @}
|
|
*/
|
|
|
|
#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;
|
|
}
|