Project with example IPSO resources for LED bar, Gas Sensor, and Light Sensor

Dependencies:   EthernetInterface LED_Bar mbed-rtos mbed nsdl_lib

Revision:
1:76ab3521eb51
Parent:
0:93cc592ffdb5
Child:
4:69ea903414fe
--- a/main.cpp	Mon Oct 20 02:04:20 2014 +0000
+++ b/main.cpp	Mon Oct 20 02:17:21 2014 +0000
@@ -8,6 +8,7 @@
 #include "LEDbar.h"
 #include "IPSO_illuminance.h"
 #include "gas_sensor.h"
+#include "IPSO_presence.h"
 
 Serial pc(USBTX, USBRX); // tx, rx
 
@@ -140,6 +141,7 @@
     create_LEDbar_resource(resource_ptr);
     create_IPSO_illuminance_resource(resource_ptr);
     create_gas_sensor_resource(resource_ptr);
+    create_IPSO_presence_resource(resource_ptr);
 
         /* Register with NSP */
     endpoint_ptr = nsdl_init_register_endpoint(endpoint_ptr, (uint8_t*)endpoint_name, ep_type, lifetime_ptr);