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: MQTTTransport.cpp
- Revision:
- 14:0a6497a380a4
- Parent:
- 13:25448d92c205
- Child:
- 15:e44d75d95b38
--- a/MQTTTransport.cpp Thu Feb 27 04:05:41 2014 +0000
+++ b/MQTTTransport.cpp Thu Feb 27 04:09:39 2014 +0000
@@ -81,7 +81,7 @@
char *message_type = "";
char *message_verb = "";
char *message_value = "";
- char *message_opt = "";
+ //char *message_opt = "";
// get our endpoint
MBEDEndpoint *endpoint = (MBEDEndpoint *)this->getEndpoint();
@@ -98,7 +98,7 @@
if (data.size() > 0) message_type = (char *)data[0].c_str();
if (data.size() > 1) message_verb = (char *)data[1].c_str();
if (data.size() > 2) message_value = (char *)data[2].c_str();
- if (data.size() > 3) message_opt = (char *)data[3].c_str();
+ //if (data.size() > 3) message_opt = (char *)data[3].c_str();
// DEBUG
//this->logger()->log("Type: %s Name: %s Verb: %s Value: %s",message_type,message_name,message_verb,message_value);
@@ -138,7 +138,7 @@
if (index >= 0) {
if (message_verb != NULL) {
// map the parameter to one of ours
- char *mapped_resource = this->mapEndpointResourceToIOCResource((char *)message_verb);
+ char *mapped_resource = this->mapIOCResourceToEndpointResource((char *)message_verb);
if (mapped_resource != NULL) {
if (message_value != NULL) {
EmulatedResourceFactory *factory = (EmulatedResourceFactory *)endpoint->getResources(index);