adding resources firmware and 1/0/8
Dependencies: Beep C12832_lcd EthernetInterface EthernetNetIf HTTPClient LM75B MMA7660 mbed-rtos mbed nsdl_lib
Fork of LWM2M_NanoService_Ethernet by
Diff: resources/gps.cpp
- Revision:
- 8:f0ecb62bda47
- Parent:
- 2:7e489126fe7a
diff -r 6b068978be9a -r f0ecb62bda47 resources/gps.cpp --- a/resources/gps.cpp Tue Oct 22 10:50:05 2013 +0000 +++ b/resources/gps.cpp Tue Feb 04 05:19:54 2014 +0000 @@ -7,7 +7,7 @@ #define GPS_RES_ID "gps/loc" extern Serial pc; -static uint8_t res_gps_val[] = {"52.182382,0.178849"}; +static uint8_t res_gps_val[] = {"41.3575123, 2.1249663"}; /* Only GET method allowed */ static uint8_t gps_resource_cb(sn_coap_hdr_s *received_coap_ptr, sn_nsdl_addr_s *address, sn_proto_info_s * proto) @@ -36,6 +36,6 @@ int create_gps_resource(sn_nsdl_resource_info_s *resource_ptr) { - nsdl_create_dynamic_resource(resource_ptr, sizeof(GPS_RES_ID)-1, (uint8_t*)GPS_RES_ID, 0, 0, 0, &gps_resource_cb, SN_GRS_GET_ALLOWED); + nsdl_create_dynamic_resource(resource_ptr, sizeof(GPS_RES_ID)-1, (uint8_t*)GPS_RES_ID, 0, 0, 1, &gps_resource_cb, SN_GRS_GET_ALLOWED); return 0; } \ No newline at end of file