/* * SPDX-FileCopyrightText: 2015-2016 Ken Bannister * SPDX-License-Identifier: LGPL-2.1-only */ /** * @ingroup examples * @{ * * @file * @brief gcoap example * * @author Ken Bannister * * @} */ #include #include "msg.h" #include "net/gcoap.h" #include "shell.h" #define MAIN_QUEUE_SIZE (4) static msg_t _main_msg_queue[MAIN_QUEUE_SIZE]; extern void gcoap_cli_init(void); int main(void) { /* for the thread running the shell */ msg_init_queue(_main_msg_queue, MAIN_QUEUE_SIZE); gcoap_cli_init(); puts("gcoap block handler"); /* start shell */ puts("All up, running the shell now"); char line_buf[SHELL_DEFAULT_BUFSIZE]; shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE); /* should never be reached */ return 0; }