cc26xx 6lbr client example: use only whith RPL Classic
This commit is contained in:
parent
f6f081b67f
commit
32d4a72716
@ -5,9 +5,14 @@ PLATFORMS_ONLY = srf06-cc26xx
|
||||
|
||||
MODULES_REL += ./resources
|
||||
|
||||
PROJECT_SOURCEFILES += cetic-6lbr-client.c coap-server.c net-uart.c mqtt-client.c
|
||||
PROJECT_SOURCEFILES += coap-server.c net-uart.c mqtt-client.c
|
||||
PROJECT_SOURCEFILES += httpd-simple.c
|
||||
|
||||
ifeq ($(MAKE_ROUTING),MAKE_ROUTING_RPL_CLASSIC)
|
||||
# 6lbr only supports RPL Classic
|
||||
PROJECT_SOURCEFILES += cetic-6lbr-client.c
|
||||
endif
|
||||
|
||||
# REST Engine shall use Erbium CoAP implementation
|
||||
MODULES += os/net/app-layer/mqtt
|
||||
MODULES += os/net/app-layer/coap
|
||||
|
@ -37,10 +37,11 @@
|
||||
#include "contiki-net.h"
|
||||
#include "net/routing/routing.h"
|
||||
#include "net/ipv6/uip.h"
|
||||
#if ROUTING_CONF_RPL_LITE
|
||||
#include "net/routing/rpl-lite/rpl.h"
|
||||
#elif ROUTING_CONF_RPL_CLASSIC
|
||||
#if ROUTING_CONF_RPL_CLASSIC
|
||||
#include "net/routing/rpl-classic/rpl.h"
|
||||
#include "net/routing/rpl-classic/rpl-private.h"
|
||||
#else
|
||||
#error The 6LBR client is only meant for RPL Classic. Set MAKE_ROUTING accordingly.
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
/* Enable/Disable Components of this Demo */
|
||||
#define CC26XX_WEB_DEMO_CONF_MQTT_CLIENT 1
|
||||
#define CC26XX_WEB_DEMO_CONF_6LBR_CLIENT 1
|
||||
#define CC26XX_WEB_DEMO_CONF_6LBR_CLIENT ROUTING_CONF_RPL_CLASSIC
|
||||
#define CC26XX_WEB_DEMO_CONF_COAP_SERVER 1
|
||||
#define CC26XX_WEB_DEMO_CONF_NET_UART 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user