add ota resources
This commit is contained in:
parent
96c5d12e2a
commit
e492974415
2 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,8 @@ APPS += er-coap
|
|||
APPS += rest-engine
|
||||
APPS += serial-shell
|
||||
APPS += arduino
|
||||
APPS += json-resource
|
||||
APPS += json ota-update
|
||||
|
||||
include $(CONTIKI)/Makefile.include
|
||||
include $(CONTIKI)/apps/arduino/Makefile.include
|
||||
|
|
|
@ -19,6 +19,7 @@ extern "C" {
|
|||
#include "net/netstack.h"
|
||||
#include "serial-shell.h"
|
||||
#include "shell-merkur.h"
|
||||
#include "ota-update.h"
|
||||
|
||||
Adafruit_HTU21DF htu = Adafruit_HTU21DF();
|
||||
|
||||
|
@ -45,6 +46,7 @@ void setup (void)
|
|||
}
|
||||
// init coap resourcen
|
||||
rest_init_engine ();
|
||||
OTA_ACTIVATE_RESOURCES();
|
||||
#pragma GCC diagnostic ignored "-Wwrite-strings"
|
||||
rest_activate_resource (&res_htu21dtemp, "s/temp");
|
||||
rest_activate_resource (&res_htu21dhum, "s/hum");
|
||||
|
|
Loading…
Reference in a new issue