Red Hat Summit NanoService Demo for LPC1768 App Board using OMA Lightweight Objects

Dependencies:   Beep C12832_lcd EthernetInterface LM75B MMA7660 mbed-rtos mbed nsdl_lib

Fork of LWM2M_NanoService_Ethernet by MBED_DEMOS

Revision:
8:f0ecb62bda47
Parent:
2:7e489126fe7a
Child:
27:d898b3a8c769
--- 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