This commit is contained in:
harald 2016-01-19 14:01:28 +01:00
parent c2f9c584b9
commit 0c3eeed1bf

View file

@ -13,7 +13,7 @@
extern "C" { extern "C" {
#include "rest-engine.h" #include "rest-engine.h"
extern resource_t res_door, res_battery; extern resource_t res_leds, res_battery;
uint8_t door_pin = 3; uint8_t door_pin = 3;
uint8_t door_status = 0; uint8_t door_status = 0;
@ -27,7 +27,7 @@ void setup (void)
digitalWrite(LED_PIN, HIGH); digitalWrite(LED_PIN, HIGH);
// init coap resourcen // init coap resourcen
rest_init_engine (); rest_init_engine ();
rest_activate_resource (&res_door, "s/door"); rest_activate_resource (&res_leds, "s/leds");
rest_activate_resource (&res_battery, "s/battery"); rest_activate_resource (&res_battery, "s/battery");
} }