custom for >5 resources

Fork of mbedConnectorInterface by Doug Anson

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)
 {