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
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