mbed Connector Endpoint interface. This interface permits a mbed endpoint to easily setup MDS resources and emit those resources to an MDS server.

Dependents:   IoT_LED_demo ServoTest uWater_Project hackathon ... more

Revision:
48:4b9ee3e32f93
Parent:
46:cc6076ac5026
--- a/api/Resource.h	Sun Apr 12 04:00:53 2015 +0000
+++ b/api/Resource.h	Mon Apr 13 23:41:34 2015 +0000
@@ -107,6 +107,13 @@
         return this->m_logger;
     }
     
+    /**
+    set the options 
+    */
+    void setOptions(const void *options) { 
+        this->m_options = (void *)options; 
+    }
+    
     // this resource implements its own observation handler
     bool implementsObservation() { return this->m_implements_observation; }
 
@@ -119,11 +126,17 @@
         this->m_value = "";
     }
     
+    // get our options
+    void *getOptions() { 
+        return this->m_options; 
+    }
+    
     Logger      *m_logger;
     void        *m_endpoint;
     string       m_name;
     InnerType    m_value;
     bool         m_implements_observation;
+    void        *m_options;
 };
 
 #endif // __RESOURCE_H__