add servo resource

This commit is contained in:
Harald Pichler 2017-11-17 13:43:35 +01:00
parent 2247c673fc
commit 713ffc33f2

View file

@ -16,7 +16,7 @@ extern "C" {
#include "rest-engine.h" #include "rest-engine.h"
#include "net/netstack.h" #include "net/netstack.h"
extern resource_t res_led, res_battery, res_cputemp; extern resource_t res_led, res_battery, res_cputemp, res_servo;
} }
uint8_t led_pin=4; uint8_t led_pin=4;
@ -41,6 +41,7 @@ void setup (void)
rest_activate_resource (&res_led, "s/led"); rest_activate_resource (&res_led, "s/led");
rest_activate_resource (&res_battery, "s/battery"); rest_activate_resource (&res_battery, "s/battery");
rest_activate_resource (&res_cputemp, "s/cputemp"); rest_activate_resource (&res_cputemp, "s/cputemp");
rest_activate_resource (&res_servo, "a/servo");
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
// NETSTACK_MAC.off(1); // NETSTACK_MAC.off(1);