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
Revision 53:458c2730e086, committed 2015-04-14
- Comitter:
- ansond
- Date:
- Tue Apr 14 13:44:41 2015 +0000
- Parent:
- 52:822611156e35
- Child:
- 54:6963bb4d0399
- Commit message:
- minor change to maxAge and cacheControl changes so that method calls are similar in form to others in DynamicResource...
Changed in this revision
| api/DynamicResource.cpp | Show annotated file Show diff for this revision Revisions of this file |
| api/DynamicResource.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/api/DynamicResource.cpp Tue Apr 14 04:00:01 2015 +0000
+++ b/api/DynamicResource.cpp Tue Apr 14 13:44:41 2015 +0000
@@ -391,12 +391,12 @@
}
// set the content-format in responses
-void DynamicResource::set_content_format(uint8_t content_format) {
+void DynamicResource::setContentFormat(uint8_t content_format) {
this->m_content_format = content_format;
}
// set the max-age of responses
-void DynamicResource::set_maxage(uint8_t maxage) {
+void DynamicResource::setMaxAge(uint8_t maxage) {
this->m_maxage = maxage;
}
--- a/api/DynamicResource.h Tue Apr 14 04:00:01 2015 +0000
+++ b/api/DynamicResource.h Tue Apr 14 13:44:41 2015 +0000
@@ -142,13 +142,13 @@
Set the content format for responses
@param content_format short integer CoAP content-format ID
*/
- void set_content_format(uint8_t content_format);
+ void setContentFormat(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);
+ void setMaxAge(uint8_t maxage);
/**
Set the data wrapper
