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: C12832_lcd EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed
Diff: MBEDEndpoint.cpp
- Revision:
- 14:0a6497a380a4
- Parent:
- 13:25448d92c205
- Child:
- 15:e44d75d95b38
--- a/MBEDEndpoint.cpp Thu Feb 27 04:05:41 2014 +0000
+++ b/MBEDEndpoint.cpp Thu Feb 27 04:09:39 2014 +0000
@@ -183,7 +183,7 @@
memset(payload,0,IOC_PAYLOAD_LEN+1);
// build the payload
- char *data = this->buildIOCPayload(data,IOC_PAYLOAD_LEN,light);
+ char *data = this->buildIOCPayload(payload,IOC_PAYLOAD_LEN,light);
// issue the request
success = this->m_transports[LOAD_TRANSPORT]->loadEndpoint((char *)payload,strlen(payload),(char *)result,IOC_RESULT_LEN);
@@ -219,7 +219,7 @@
memset(payload,0,IOC_PAYLOAD_LEN+1);
// build the payload
- char *data = this->buildIOCPayload(data,IOC_PAYLOAD_LEN,light);
+ char *data = this->buildIOCPayload(payload,IOC_PAYLOAD_LEN,light);
// issue the request
success = this->m_transports[LOAD_TRANSPORT]->updateEndpoint(this->getIOCID(),(char *)payload,strlen(payload),(char *)result,IOC_RESULT_LEN);