From c4c92ea630a60013a1f06e8cea211c7020ca0c19 Mon Sep 17 00:00:00 2001 From: Harald Pichler Date: Tue, 12 Feb 2013 16:40:47 +0100 Subject: [PATCH] add button sensor with debug --- examples/osd/pir-sensor/er-example-server.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/osd/pir-sensor/er-example-server.c b/examples/osd/pir-sensor/er-example-server.c index 3b8829913..55ad98d4a 100644 --- a/examples/osd/pir-sensor/er-example-server.c +++ b/examples/osd/pir-sensor/er-example-server.c @@ -45,15 +45,15 @@ /* Define which resources to include to meet memory constraints. */ #define REST_RES_INFO 1 -#define REST_RES_DS1820 1 -#define REST_RES_DHT11 1 -#define REST_RES_TEMPERATURE 1 +#define REST_RES_DS1820 0 +#define REST_RES_DHT11 0 +#define REST_RES_TEMPERATURE 0 #define REST_RES_HELLO 0 #define REST_RES_MIRROR 0 /* causes largest code size */ #define REST_RES_CHUNKS 0 #define REST_RES_SEPARATE 0 #define REST_RES_PUSHING 0 -#define REST_RES_EVENT 0 +#define REST_RES_EVENT 1 #define REST_RES_SUB 0 #define REST_RES_LEDS 0 #define REST_RES_TOGGLE 0 @@ -765,7 +765,7 @@ pushing_periodic_handler(resource_t *r) * Additionally takes a period parameter that defines the interval to call [name]_periodic_handler(). * A default post_handler takes care of subscriptions and manages a list of subscribers to notify. */ -EVENT_RESOURCE(event, METHOD_GET, "sensors/button", "title=\"Event demo\";obs"); +EVENT_RESOURCE(event, METHOD_GET, "sensors/pir", "title=\"Event demo\";obs"); void event_handler(void* request, void* response, uint8_t *buffer, uint16_t preferred_size, int32_t *offset)