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
Diff: api/DynamicResource.cpp
- Revision:
- 30:113c2a1d8db2
- Parent:
- 28:8fd9336edeb9
- Child:
- 31:bacc63106754
--- a/api/DynamicResource.cpp Wed Apr 01 04:33:19 2015 +0000
+++ b/api/DynamicResource.cpp Tue Apr 07 21:30:03 2015 +0000
@@ -310,6 +310,13 @@
;
}
+// default observe behavior
+void DynamicResource::observe() {
+ if (this->m_observable == true) {
+ this->notify(this->get());
+ }
+}
+
// convenience method to get the URI from its buffer field...
string DynamicResource::coapDataToString(uint8_t *coap_data_ptr,int coap_data_ptr_length)
{
