Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbedConnectorInterface by
Diff: api/DynamicResource.cpp
- Revision:
- 28:8fd9336edeb9
- Parent:
- 27:eb6818ad257a
- Child:
- 30:113c2a1d8db2
--- a/api/DynamicResource.cpp Wed Mar 25 05:12:35 2015 +0000 +++ b/api/DynamicResource.cpp Wed Mar 25 16:58:41 2015 +0000 @@ -182,7 +182,7 @@ if(received_coap_ptr->payload_len > 0) { // process the PUT if we have registered a callback for it... if ((this->m_res_mask&SN_GRS_PUT_ALLOWED) != 0) { - // binder interacts only with strings + // put() delivers values as std::string string value = this->coapDataToString(received_coap_ptr->payload_ptr,received_coap_ptr->payload_len); // call the resource put() to set the resource value @@ -203,7 +203,7 @@ if(received_coap_ptr->payload_len > 0) { // process the POST if we have registered a callback for it... if ((this->m_res_mask&SN_GRS_POST_ALLOWED) != 0) { - // binder interacts only with strings + // post() delivers values as std::string string value = this->coapDataToString(received_coap_ptr->payload_ptr,received_coap_ptr->payload_len); // call the resource post() to set the resource value @@ -224,7 +224,7 @@ if(received_coap_ptr->payload_len > 0) { // process the DELETE if we have registered a callback for it... if ((this->m_res_mask&SN_GRS_DELETE_ALLOWED) != 0) { - // binder interacts only with strings + // del() delivers values as std::string string value = this->coapDataToString(received_coap_ptr->payload_ptr,received_coap_ptr->payload_len); // call the resource del() to set the resource value