A client for the SmartREST protocol from Cumulocity.

Dependencies:   HTTPClient SmartRest

Revision:
2:1038411466a6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MbedDataSink.h	Fri Jan 24 11:39:32 2014 +0000
@@ -0,0 +1,31 @@
+#ifndef MBEDDATASINK_H
+#define MBEDDATASINK_H
+
+#include <stddef.h>
+#include "AbstractDataSink.h"
+
+class HTTPGeneratorWrapper;
+
+class MbedDataSink : public AbstractDataSink
+{
+public:
+    MbedDataSink(size_t length);
+    ~MbedDataSink();
+    
+    size_t write(char c);
+    size_t write(void *buf, size_t length);
+    size_t write(const char *str);
+    size_t write(unsigned long number);
+    
+protected:
+    const char * buffer();
+    size_t length();
+
+private:
+    char *_buf, *_ptr;
+    size_t _len;
+
+friend class HTTPGeneratorWrapper;
+};
+
+#endif
\ No newline at end of file