Doug Anson / mbedConnectorInterface

Dependents:   IoT_LED_demo ServoTest uWater_Project hackathon ... more

Revision:
23:caa0260acc21
Parent:
21:8487990a3baa
Child:
24:a6915e19814e
--- a/api/DynamicResource.h	Fri Mar 13 06:22:41 2015 +0000
+++ b/api/DynamicResource.h	Thu Mar 19 04:05:08 2015 +0000
@@ -123,6 +123,12 @@
     */
     int notify(const string data);
     
+    /**
+    Determine whether this dynamic resource is observable or not
+    @returns true - is observable, false - otherwise
+    */
+    bool isObservable() { return this->m_observable; }
+    
 protected:
     int notify(uint8_t *data,int data_length);