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: HTTPTransport.cpp
- Revision:
- 12:952dce085876
- Parent:
- 11:59ee476fda24
- Child:
- 15:e44d75d95b38
--- a/HTTPTransport.cpp Thu Feb 27 00:14:58 2014 +0000
+++ b/HTTPTransport.cpp Thu Feb 27 00:23:30 2014 +0000
@@ -38,10 +38,10 @@
}
// Load up our endpoint into the IOC
- bool HTTPTransport::loadEndpoint(char *data,int data_length,char *result,int result_length) { return this->httpPost(url,data,strlen(data),result,result_length); }
+ bool HTTPTransport::loadEndpoint(char *data,int data_length,char *result,int result_length) { return this->httpPost(this->createIOCLoadURL(),data,strlen(data),result,result_length); }
// update our endpoint with the IOC
- bool HTTPTransport::updateEndpoint(char *data,int data_length,char *result,int result_length) { return this->httpPut(url,data,strlen(data),result,result_length); }
+ bool HTTPTransport::updateEndpoint(int ioc_id,char *data,int data_length,char *result,int result_length) { return this->httpPut(this->createIOCUpdateURL(ioc_id),data,strlen(data),result,result_length); }
// create the IOC load URL
char *HTTPTransport::createIOCLoadURL() { return this->createIOCUpdateURL(0); }