A client for the SmartREST protocol from Cumulocity.

Dependencies:   HTTPClient SmartRest

Revision:
3:ce2f116369bd
Parent:
2:1038411466a6
--- a/HTTPBuffer.cpp	Fri Jan 24 11:39:32 2014 +0000
+++ b/HTTPBuffer.cpp	Fri Jan 24 21:05:24 2014 +0000
@@ -1,5 +1,6 @@
 #include "HTTPBuffer.h"
 #include <stdlib.h>
+#include <string.h>
 
 HTTPBuffer::HTTPBuffer()
 {
@@ -41,8 +42,8 @@
             newLen += HTTPBUFFER_INCREMENT;
         bufferSize(newLen);
     }
-    memcpy(_wbuf, buf, len);
-    _wbuf += len;
+    memcpy(_wptr, buf, len);
+    _wptr += len;
 }
 
 void HTTPBuffer::setDataType(const char* type)
@@ -73,5 +74,5 @@
     _rptr = buf + (_rptr - _buf);
     _buf = buf;
 
-    _len = len;
+    _len = length;
 }