mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-14 00:53:49 +01:00
43 lines
889 B
C
43 lines
889 B
C
/*
|
|
* SPDX-FileCopyrightText: 2018 Beduino Master Projekt - University of Bremen
|
|
* SPDX-FileCopyrightText: 2019 HAW Hamburg
|
|
* SPDX-License-Identifier: LGPL-2.1-only
|
|
*/
|
|
|
|
/**
|
|
* @ingroup examples
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Example application for Eclipse Wakaama LwM2M Client
|
|
*
|
|
* @author Christian Manal <manal@uni-bremen.de>
|
|
* @author Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
|
|
* @}
|
|
*/
|
|
|
|
#include <inttypes.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "board.h"
|
|
#include "msg.h"
|
|
#include "shell.h"
|
|
|
|
#define SHELL_QUEUE_SIZE (8)
|
|
static msg_t _shell_queue[SHELL_QUEUE_SIZE];
|
|
|
|
extern void lwm2m_cli_init(void);
|
|
|
|
int main(void)
|
|
{
|
|
/* initiates LwM2M client */
|
|
lwm2m_cli_init();
|
|
|
|
msg_init_queue(_shell_queue, SHELL_QUEUE_SIZE);
|
|
char line_buf[SHELL_DEFAULT_BUFSIZE];
|
|
shell_run(NULL, line_buf, SHELL_DEFAULT_BUFSIZE);
|
|
|
|
return 0;
|
|
}
|