Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HTTPClient SmartRest
Revision 4:0eb69392686f, committed 2014-01-27
- Comitter:
- vwochnik
- Date:
- Mon Jan 27 08:44:55 2014 +0000
- Parent:
- 3:ce2f116369bd
- Child:
- 5:ab909221d22d
- Commit message:
- fix
Changed in this revision
--- 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);