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: C027_Support C12832 StatusReporter LM75B MQTT-ansond c027_radios endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: HTTPTransport.h
- Revision:
- 10:748fc7052e61
- Parent:
- 9:ff877db53cfd
- Child:
- 11:59ee476fda24
--- a/HTTPTransport.h Wed Feb 26 21:48:57 2014 +0000
+++ b/HTTPTransport.h Wed Feb 26 22:27:04 2014 +0000
@@ -28,6 +28,9 @@
class HTTPTransport : public Transport {
private:
HTTPClient *m_http;
+ char m_url_buffer[IOC_REST_URL_LEN+1];
+ char m_result_buffer[IOC_RESULT_LEN+1];
+ char m_payload_buffer[IOC_PAYLOAD_LEN+1];
public:
HTTPTransport(ErrorHandler *error_handler,void *endpoint);
@@ -43,6 +46,12 @@
virtual bool connect();
virtual bool disconnect();
+
+ private:
+ char *createIOCLoadURL();
+ char *createIOCUpdateURL(int ioc_id);
+ char *buildIOCPayload();
+ void saveIOCID(char *data);
};
#endif // ___HTTPTRANSPORT_H_
\ No newline at end of file