mbed Connector Endpoint interface. This interface permits a mbed endpoint to easily setup MDS resources and emit those resources to an MDS server.

Dependents:   IoT_LED_demo ServoTest uWater_Project hackathon ... more

Revision:
25:1fc958ac14d1
Parent:
24:a6915e19814e
Child:
27:eb6818ad257a
diff -r a6915e19814e -r 1fc958ac14d1 api/DynamicResource.cpp
--- a/api/DynamicResource.cpp	Fri Mar 20 04:08:59 2015 +0000
+++ b/api/DynamicResource.cpp	Fri Mar 20 05:32:16 2015 +0000
@@ -105,7 +105,10 @@
     sn_coap_hdr_s *coap_res_ptr = 0;
 
     // create our key for debugging output...
+    DataWrapper *hold = this->getDataWrapper();
+    this->setDataWrapper(NULL);
     string key = this->coapDataToString(received_coap_ptr->uri_path_ptr,received_coap_ptr->uri_path_len);
+    this->setDataWrapper(hold);
 
     if(received_coap_ptr->msg_code == COAP_MSG_CODE_REQUEST_GET) {
         coap_res_ptr = sn_coap_build_response(received_coap_ptr, COAP_MSG_CODE_RESPONSE_CONTENT);