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.h
- Revision:
- 52:822611156e35
- Parent:
- 51:b308658817e5
- Child:
- 53:458c2730e086
--- a/api/DynamicResource.h Tue Apr 14 03:02:35 2015 +0000 +++ b/api/DynamicResource.h Tue Apr 14 04:00:01 2015 +0000 @@ -139,6 +139,18 @@ void setObserver(void *observer); /** + Set the content format for responses + @param content_format short integer CoAP content-format ID + */ + void set_content_format(uint8_t content_format); + + /** + Set the max-age for cache control of responses in a proxy cache + @param maxage short integer CoAP max-age in seconds + */ + void set_maxage(uint8_t maxage); + + /** Set the data wrapper @param data_wrapper input the data wrapper instance */