A client for the SmartREST protocol from Cumulocity.

Dependencies:   HTTPClient SmartRest

Committer:
vwochnik
Date:
Wed Apr 02 12:23:46 2014 +0000
Revision:
12:788dd934f283
Parent:
4:0eb69392686f
fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vwochnik 2:1038411466a6 1 #ifndef HTTPGENERATORWRAPPER_H
vwochnik 2:1038411466a6 2 #define HTTPGENERATORWRAPPER_H
vwochnik 2:1038411466a6 3
vwochnik 2:1038411466a6 4 #include "DataGenerator.h"
vwochnik 2:1038411466a6 5 #include "MbedDataSink.h"
vwochnik 2:1038411466a6 6 #include "IHTTPData.h"
vwochnik 2:1038411466a6 7
vwochnik 4:0eb69392686f 8 class HTTPGeneratorWrapper : public IHTTPDataOut
vwochnik 3:ce2f116369bd 9 {
vwochnik 2:1038411466a6 10 public:
vwochnik 2:1038411466a6 11 HTTPGeneratorWrapper(DataGenerator& generator);
vwochnik 2:1038411466a6 12
vwochnik 2:1038411466a6 13 protected:
vwochnik 2:1038411466a6 14 void readReset();
vwochnik 2:1038411466a6 15 int read(char* buf, size_t len, size_t* pReadLen);
vwochnik 2:1038411466a6 16 int getDataType(char* type, size_t maxTypeLen);
vwochnik 2:1038411466a6 17 bool getIsChunked();
vwochnik 2:1038411466a6 18 size_t getDataLen();
vwochnik 2:1038411466a6 19
vwochnik 2:1038411466a6 20 private:
vwochnik 2:1038411466a6 21 MbedDataSink _sink;
vwochnik 2:1038411466a6 22 size_t _len;
vwochnik 2:1038411466a6 23 size_t _pos;
vwochnik 2:1038411466a6 24 };
vwochnik 2:1038411466a6 25
vwochnik 2:1038411466a6 26 #endif