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:
- 52:822611156e35
- Parent:
- 51:b308658817e5
- Child:
- 53:458c2730e086
--- a/api/DynamicResource.cpp Tue Apr 14 03:02:35 2015 +0000 +++ b/api/DynamicResource.cpp Tue Apr 14 04:00:01 2015 +0000 @@ -390,6 +390,16 @@ this->m_observer = observer; } +// set the content-format in responses +void DynamicResource::set_content_format(uint8_t content_format) { + this->m_content_format = content_format; +} + +// set the max-age of responses +void DynamicResource::set_maxage(uint8_t maxage) { + this->m_maxage = maxage; +} + // convenience method to get the URI from its buffer field... string DynamicResource::coapDataToString(uint8_t *coap_data_ptr,int coap_data_ptr_length) {