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:
Revision 12:160f28111a34, committed 2014-06-15
- Comitter:
- michaeljkoster
- Date:
- Sun Jun 15 17:39:07 2014 +0000
- Parent:
- 11:9daf07113ef6
- Child:
- 13:92847e20c246
- Commit message:
- Configure out the altimeter, seems to fail only when all resources are created; suggests out of memory
Changed in this revision
nsdl_run.cpp | Show annotated file Show diff for this revision Revisions of this file |
resources/rgbled.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/nsdl_run.cpp Sun Jun 15 17:31:17 2014 +0000 +++ b/nsdl_run.cpp Sun Jun 15 17:39:07 2014 +0000 @@ -113,7 +113,7 @@ create_battery_resource(resource_ptr); create_light_resource(resource_ptr); create_temp_resource(resource_ptr); - create_alt_resource(resource_ptr); +// create_alt_resource(resource_ptr); create_slider_resource(resource_ptr); create_accel_resource(resource_ptr); create_magnet_resource(resource_ptr);
--- a/resources/rgbled.cpp Sun Jun 15 17:31:17 2014 +0000 +++ b/resources/rgbled.cpp Sun Jun 15 17:39:07 2014 +0000 @@ -140,8 +140,8 @@ int create_rgbled_resource(sn_nsdl_resource_info_s *resource_ptr) { nsdl_create_dynamic_resource(resource_ptr, sizeof(RED_LED_RES_ID)-1, (uint8_t*)RED_LED_RES_ID, 0, 0, 0, &red_led_resource_cb, (SN_GRS_GET_ALLOWED | SN_GRS_PUT_ALLOWED)); -// nsdl_create_dynamic_resource(resource_ptr, sizeof(GRN_LED_RES_ID)-1, (uint8_t*)GRN_LED_RES_ID, 0, 0, 0, &grn_led_resource_cb, (SN_GRS_GET_ALLOWED | SN_GRS_PUT_ALLOWED)); -// nsdl_create_dynamic_resource(resource_ptr, sizeof(BLU_LED_RES_ID)-1, (uint8_t*)BLU_LED_RES_ID, 0, 0, 0, &blu_led_resource_cb, (SN_GRS_GET_ALLOWED | SN_GRS_PUT_ALLOWED)); + nsdl_create_dynamic_resource(resource_ptr, sizeof(GRN_LED_RES_ID)-1, (uint8_t*)GRN_LED_RES_ID, 0, 0, 0, &grn_led_resource_cb, (SN_GRS_GET_ALLOWED | SN_GRS_PUT_ALLOWED)); + nsdl_create_dynamic_resource(resource_ptr, sizeof(BLU_LED_RES_ID)-1, (uint8_t*)BLU_LED_RES_ID, 0, 0, 0, &blu_led_resource_cb, (SN_GRS_GET_ALLOWED | SN_GRS_PUT_ALLOWED)); //initialize state here red_led_state = '0'; grn_led_state = '0';