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 C12832 EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: IOCHTTPTransport.cpp
- Revision:
- 95:24e9557e13d6
- Parent:
- 94:0159f907859b
--- a/IOCHTTPTransport.cpp Tue Mar 11 17:23:02 2014 +0000
+++ b/IOCHTTPTransport.cpp Tue Mar 11 18:12:53 2014 +0000
@@ -45,10 +45,8 @@
// Load up our endpoint into the IOC
bool IOCHTTPTransport::loadEndpoint(char *data,int data_length,char *result,int result_length) {
- char *url = this->createIOCLoadURL();
- //this->logger()->log("loadEndpoint: %s",data);
- //this->logger()->log("loadEndpoint URL: %s",url);
- data = this->packageData("POST",data,0);
+ data = this->packageData("POST",data,0); // must be first as it will first write into the common URL buffer
+ char *url = this->createIOCLoadURL(); // resets the common URL buffer to point to the IOC GW
return this->httpPost(url,data,strlen(data),result,result_length);
}