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

Committer:
michaeljkoster
Date:
Wed Jul 09 04:35:49 2014 +0000
Revision:
18:11b9d98ecae2
Parent:
8:3926a80af3e0
Checkpoint

Who changed what in which revision?

UserRevisionLine numberNew contents of line
michaeljkoster 0:07581223f90c 1 // Support functions for the NSDL library
michaeljkoster 0:07581223f90c 2
michaeljkoster 0:07581223f90c 3 #ifndef NSDL_SUPPORT_H
michaeljkoster 0:07581223f90c 4 #define NSDL_SUPPORT_H
michaeljkoster 0:07581223f90c 5
michaeljkoster 0:07581223f90c 6 #include "mbed.h"
michaeljkoster 0:07581223f90c 7 #include <stdint.h>
michaeljkoster 0:07581223f90c 8 #include "sn_nsdl.h"
michaeljkoster 0:07581223f90c 9 #include "sn_coap_header.h"
michaeljkoster 0:07581223f90c 10 #include "sn_coap_protocol.h"
michaeljkoster 0:07581223f90c 11 #include "sn_nsdl_lib.h"
michaeljkoster 0:07581223f90c 12
michaeljkoster 0:07581223f90c 13 typedef uint8_t (*sn_grs_dyn_res_callback_t)(sn_coap_hdr_s *, sn_nsdl_addr_s *, sn_proto_info_s *);
michaeljkoster 0:07581223f90c 14
michaeljkoster 0:07581223f90c 15 extern "C" void *nsdl_alloc(uint16_t size);
michaeljkoster 0:07581223f90c 16 extern "C" void nsdl_free(void* ptr_to_free);
michaeljkoster 0:07581223f90c 17 void nsdl_create_static_resource(sn_nsdl_resource_info_s *resource_structure, uint16_t pt_len, uint8_t *pt, uint16_t rpp_len, uint8_t *rpp_ptr, uint8_t *rsc, uint16_t rsc_len);
michaeljkoster 0:07581223f90c 18 void nsdl_create_dynamic_resource(sn_nsdl_resource_info_s *resource_structure, uint16_t pt_len, uint8_t *pt, uint16_t rpp_len, uint8_t *rpp_ptr, uint8_t is_observable, sn_grs_dyn_res_callback_t callback_ptr, int access_right);
michaeljkoster 0:07581223f90c 19 sn_nsdl_ep_parameters_s* nsdl_init_register_endpoint(sn_nsdl_ep_parameters_s *endpoint_structure, uint8_t* name, uint8_t* ypename_ptr, uint8_t *lifetime_ptr);
michaeljkoster 0:07581223f90c 20 void nsdl_clean_register_endpoint(sn_nsdl_ep_parameters_s **endpoint_structure);
michaeljkoster 0:07581223f90c 21 void nsdl_init();
michaeljkoster 0:07581223f90c 22 void nsdl_event_loop();
michaeljkoster 0:07581223f90c 23 void nsdl_run();
michaeljkoster 8:3926a80af3e0 24 void nsdl_reg_update();
michaeljkoster 0:07581223f90c 25
michaeljkoster 0:07581223f90c 26 #endif // NSDL_SUPPORT_H