mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-15 00:29:02 +00:00
The current version of the CC26xx web demo publishes over MQTT the default parent's IPv6 address and the last observed RSSI of this link. This is collected by active probing (periodic ping). This commit brings the probing functionality to the example's main code module. The MQTT client keeps publishing as previously, but we now also export the same information through CoAP resources. Configuration is still possible through the example's web server.
25 lines
613 B
Makefile
25 lines
613 B
Makefile
DEFINES+=PROJECT_CONF_H=\"project-conf.h\"
|
|
|
|
all: cc26xx-web-demo
|
|
|
|
REST_RESOURCES_DIR = ./resources
|
|
|
|
REST_RESOURCES_FILES += res-leds.c res-toggle-leds.c res-device.c
|
|
REST_RESOURCES_FILES += res-sensors.c res-ble-advd.c res-net.c
|
|
|
|
PROJECTDIRS += $(REST_RESOURCES_DIR)
|
|
PROJECT_SOURCEFILES += $(REST_RESOURCES_FILES)
|
|
|
|
PROJECT_SOURCEFILES += cetic-6lbr-client.c coap-server.c net-uart.c mqtt-client.c
|
|
PROJECT_SOURCEFILES += httpd-simple.c
|
|
|
|
CONTIKI_WITH_IPV6 = 1
|
|
|
|
# REST Engine shall use Erbium CoAP implementation
|
|
APPS += er-coap
|
|
APPS += rest-engine
|
|
APPS += mqtt
|
|
|
|
CONTIKI=../../..
|
|
include $(CONTIKI)/Makefile.include
|