Demo starter application to connect WiGo to NSP and expose on-board sensors

Dependencies:   NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed nsdl_lib TEMT6200 TSI Wi-Go_eCompass_Lib_V3 WiGo_BattCharger

This is the mbed project for the IoT World Hackathon event, June 17th and 18th in Palo Also.

The setup instructions for participants are at the Setup page of this wiki:

http://mbed.org/teams/MBED_DEMOS/code/IoT_World_Hackathon_WiGo_NSP_Demo/wiki/Setup-Guide-for-the-IoT-World-Hackathon

Revision:
4:727f1aeb717a
Parent:
3:4cfa5d26f35e
Child:
5:bacf25e9419b
--- a/nsdl_run.cpp	Sat Jun 14 02:37:08 2014 +0000
+++ b/nsdl_run.cpp	Sat Jun 14 07:01:56 2014 +0000
@@ -4,6 +4,7 @@
 #include "dbg.h"
 #include "UDPSocket.h"
 #include "Endpoint.h"
+#include "battery.h"
 
 extern Serial pc;
 
@@ -102,10 +103,7 @@
     nsdl_create_static_resource(resource_ptr, sizeof("dev/mdl")-1, (uint8_t*) "dev/mdl", 0, 0,  (uint8_t*) "WiGoSystem", sizeof("WiGiSystem")-1);
 
     // Dynamic resources
-//    create_temperature_resource(resource_ptr);
-//    create_light_resource(resource_ptr);
-//    create_gps_resource(resource_ptr);
-//    create_relay_resource(resource_ptr);
+    create_battery_resource(resource_ptr);
 
         /* Register with NSP */
     endpoint_ptr = nsdl_init_register_endpoint(endpoint_ptr, (uint8_t*)endpoint_name, ep_type, lifetime_ptr);