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:
25:1fc958ac14d1
Parent:
24:a6915e19814e
Child:
26:b06a19916f05
--- a/api/DataWrapper.h	Fri Mar 20 04:08:59 2015 +0000
+++ b/api/DataWrapper.h	Fri Mar 20 05:32:16 2015 +0000
@@ -34,6 +34,11 @@
         DataWrapper(uint8_t *data,int data_length);
         
         /**
+        Default constructor (alloc)
+        */
+        DataWrapper(int data_length);
+        
+        /**
         Default copy constructor
         */
         DataWrapper(const DataWrapper &data);
@@ -69,10 +74,13 @@
         Reset the wrapper
         */
         void reset();
-    
+    protected:
+        uint8_t *m_data;
+        
     private:
-        uint8_t *m_data;
+        bool     m_alloced;
         int      m_data_length;
+        int      m_data_length_max;
 };
 
 #endif // __DATA_WRAPPER_H__
\ No newline at end of file