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:
24:a6915e19814e
Parent:
2:853f9ecc12df
--- a/api/StaticResource.h	Thu Mar 19 04:05:08 2015 +0000
+++ b/api/StaticResource.h	Fri Mar 20 04:08:59 2015 +0000
@@ -29,6 +29,9 @@
 // String class support
 #include <string>
 
+// DataWrapper support
+#include "DataWrapper.h"
+
 /** StaticResource is a static (GET only) resource with a value type pinned as a string type
  */
 class StaticResource : public Resource<string>
@@ -75,10 +78,18 @@
     @param p input pointer to the endpoint resources necessary for binding
     */
     virtual void bind(void *p);
+    
+    /**
+    Set the data wrapper
+    @param data_wrapper input the data wrapper instance
+    */
+    void setDataWrapper(DataWrapper *data_wrapper) { this->m_data_wrapper = data_wrapper; }
 
 protected:
+    DataWrapper *getDataWrapper() { return this->m_data_wrapper; }
 
 private:
+    DataWrapper *m_data_wrapper;
 };
 
 #endif // __STATIC_RESOURCE_H__