custom for >5 resources
Fork of mbedConnectorInterface by
Diff: api/DynamicResource.cpp
- Revision:
- 25:1fc958ac14d1
- Parent:
- 24:a6915e19814e
- Child:
- 27:eb6818ad257a
--- 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);