MBED NanoService Lighting Endpoint for NXP Ublox (Ethernet enabled)

Dependencies:   C027 C12832 EthernetInterface StatusReporter LM75B endpoint_core endpoint_nsp mbed-rtos mbed nsp_resources

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Wed Mar 12 05:59:12 2014 +0000
Parent:
85:2123b96e930f
Child:
87:012b7b4d32b0
Commit message:
updates

Changed in this revision

Definitions.h Show annotated file Show diff for this revision Revisions of this file
mbed-src.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
nsp_resources/nsp_get.cpp Show annotated file Show diff for this revision Revisions of this file
nsp_resources/nsp_getput.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Definitions.h	Tue Mar 11 21:29:16 2014 +0000
+++ b/Definitions.h	Wed Mar 12 05:59:12 2014 +0000
@@ -68,7 +68,8 @@
 #define HTTP_TRANSPORT      1                      // HTTP Transport index
 
 // NSP Configuration
-#define NSP_ADDRESS         "192.168.1.150"        // Target NSP Service - work
+//#define NSP_ADDRESS         "192.168.1.150"        // Target NSP Service - work
+#define NSP_ADDRESS         "192.168.1.220"        // Target NSP Service - home vm
 //#define NSP_ADDRESS         "10.1.0.81"            // Target NSP Service - home
 #define NSP_PORT            5683                   // Target NSP Service Port Number
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-src.lib	Wed Mar 12 05:59:12 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed-src/#471443864d4b
--- a/mbed.bld	Tue Mar 11 21:29:16 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1
\ No newline at end of file
--- a/nsp_resources/nsp_get.cpp	Tue Mar 11 21:29:16 2014 +0000
+++ b/nsp_resources/nsp_get.cpp	Wed Mar 12 05:59:12 2014 +0000
@@ -11,7 +11,7 @@
     coap_res_ptr = sn_coap_build_response(received_coap_ptr,COAP_MSG_CODE_RESPONSE_CONTENT);
     if (coap_res_ptr != NULL && io != NULL && io->stringValue() != NULL) {
         coap_res_ptr->payload_len = strlen(io->stringValue());
-        coap_res_ptr->payload_ptr = (uint8_t*)strdup(io->stringValue());
+        coap_res_ptr->payload_ptr = (uint8_t*)io->stringValue();
         sn_nsdl_send_coap_message(address, coap_res_ptr);
         if (error_handler != NULL) error_handler->log("NSP: %s: %s...",tag,io->stringValue());
     }
--- a/nsp_resources/nsp_getput.cpp	Tue Mar 11 21:29:16 2014 +0000
+++ b/nsp_resources/nsp_getput.cpp	Wed Mar 12 05:59:12 2014 +0000
@@ -15,7 +15,7 @@
         coap_res_ptr = sn_coap_build_response(received_coap_ptr, COAP_MSG_CODE_RESPONSE_CONTENT);
         if (coap_res_ptr != NULL && io != NULL && io->stringValue() != NULL) {
             coap_res_ptr->payload_len = strlen(io->stringValue());
-            coap_res_ptr->payload_ptr = (uint8_t*)strdup(io->stringValue());
+            coap_res_ptr->payload_ptr = (uint8_t*)io->stringValue();
             sn_nsdl_send_coap_message(address, coap_res_ptr);
             if (error_handler != NULL) error_handler->log("NSP: %s: %s...",tag,io->stringValue());
         }