mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
examples/nanocoap_server: adapt to in-tree nanocoap
This commit is contained in:
parent
16bdbe5d32
commit
729cda62bf
@ -22,9 +22,7 @@ USEMODULE += gnrc_sock_udp
|
||||
# Additional networking modules that can be dropped if not needed
|
||||
USEMODULE += gnrc_icmpv6_echo
|
||||
|
||||
USEPKG += nanocoap
|
||||
# optionally enable nanocoap's debug output
|
||||
#CFLAGS += -DNANOCOAP_DEBUG
|
||||
USEMODULE += nanocoap_sock
|
||||
|
||||
# include this for nicely formatting the returned internal value
|
||||
USEMODULE += fmt
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "fmt.h"
|
||||
#include "nanocoap.h"
|
||||
#include "net/nanocoap.h"
|
||||
|
||||
/* internal value that can be read/written via CoAP */
|
||||
static uint8_t internal_value = 0;
|
||||
|
@ -19,8 +19,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "nanocoap.h"
|
||||
#include "nanocoap_sock.h"
|
||||
#include "net/nanocoap.h"
|
||||
#include "net/nanocoap_sock.h"
|
||||
|
||||
#include "xtimer.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user