A client for the SmartREST protocol from Cumulocity.

Dependencies:   SmartRest

Fork of MbedSmartRest by Vincent Wochnik

Files at this revision

API Documentation at this revision

Comitter:
vwochnik
Date:
Mon Jan 27 08:44:55 2014 +0000
Parent:
3:ce2f116369bd
Child:
5:ab909221d22d
Commit message:
fix

Changed in this revision

HTTPBuffer.h Show annotated file Show diff for this revision Revisions of this file
HTTPClient.lib Show annotated file Show diff for this revision Revisions of this file
HTTPGeneratorWrapper.cpp Show annotated file Show diff for this revision Revisions of this file
HTTPGeneratorWrapper.h Show annotated file Show diff for this revision Revisions of this file
--- a/HTTPBuffer.h	Fri Jan 24 21:05:24 2014 +0000
+++ b/HTTPBuffer.h	Mon Jan 27 08:44:55 2014 +0000
@@ -7,8 +7,8 @@
 
 #define HTTPBUFFER_INITIAL_SIZE 128
 #define HTTPBUFFER_INCREMENT 64
-
-class HTTPBuffer : public HTTPDataIn, public AbstractDataSource
+static int x = 123;
+class HTTPBuffer : public IHTTPDataIn, public AbstractDataSource
 {
 public:
     HTTPBuffer();
@@ -16,9 +16,10 @@
 
     char read();
     uint8_t status();
+    
+    void writeReset();
 
 protected:
-    void writeReset();
     int write(const char* buf, size_t len);
     void setDataType(const char* type);
     void setIsChunked(bool chunked);
--- a/HTTPClient.lib	Fri Jan 24 21:05:24 2014 +0000
+++ b/HTTPClient.lib	Mon Jan 27 08:44:55 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/vwochnik/code/HTTPClient/#bcbf0af9fac3
+http://mbed.org/users/vwochnik/code/HTTPClient/#cb2e5cd4e29b
--- a/HTTPGeneratorWrapper.cpp	Fri Jan 24 21:05:24 2014 +0000
+++ b/HTTPGeneratorWrapper.cpp	Mon Jan 27 08:44:55 2014 +0000
@@ -23,7 +23,7 @@
         *pReadLen = len;
     memcpy(buf, _sink.buffer()+_pos, *pReadLen);
     _pos += *pReadLen;
-    return OK;
+    return 0;
 }
 
 int HTTPGeneratorWrapper::getDataType(char* type, size_t maxTypeLen)
--- a/HTTPGeneratorWrapper.h	Fri Jan 24 21:05:24 2014 +0000
+++ b/HTTPGeneratorWrapper.h	Mon Jan 27 08:44:55 2014 +0000
@@ -5,7 +5,7 @@
 #include "MbedDataSink.h"
 #include "IHTTPData.h"
 
-class HTTPGeneratorWrapper, public HTTPDataOut
+class HTTPGeneratorWrapper : public IHTTPDataOut
 {
 public:
     HTTPGeneratorWrapper(DataGenerator& generator);