custom for >5 resources

Fork of mbedConnectorInterface by Doug Anson

Revision:
52:822611156e35
Parent:
51:b308658817e5
Child:
53:458c2730e086
diff -r b308658817e5 -r 822611156e35 api/DynamicResource.cpp
--- 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)
 {