MBED MQTT Lighting Endpoint for NXP Ublox (cellular enabled)

Dependencies:   C027_Support C12832 StatusReporter LM75B MQTT-ansond c027_radios endpoint_core endpoint_mqtt mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Sun Mar 16 17:41:10 2014 +0000
Parent:
129:c4fa24308e33
Child:
131:27f29e230bbb
Commit message:
updates

Changed in this revision

Definitions.h Show annotated file Show diff for this revision Revisions of this file
MQTT.lib Show annotated file Show diff for this revision Revisions of this file
MQTTTransport.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Definitions.h	Sun Mar 16 17:30:59 2014 +0000
+++ b/Definitions.h	Sun Mar 16 17:41:10 2014 +0000
@@ -102,7 +102,7 @@
 #define LOAD_TRANSPORT              1                               // 0 - MQTT, 1 - HTTP
 
 // largest MQTT message that PubSubClient will send
-#define MAX_MQTT_MESSAGE_LENGTH     128
+#define MAX_MQTT_MESSAGE_LENGTH     512
 
 // MQTT connect information
 #define MQTT_HOSTNAME               "iocana.bcu.ac.uk"              // IOC MQTT Broker Host - iocana.bcu.ac.uk
--- a/MQTT.lib	Sun Mar 16 17:30:59 2014 +0000
+++ b/MQTT.lib	Sun Mar 16 17:41:10 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/jwende/code/MQTT/#ca855d29545b
+http://mbed.org/users/ansond/code/MQTT-ansond/#0f810fceda0a
--- a/MQTTTransport.cpp	Sun Mar 16 17:30:59 2014 +0000
+++ b/MQTTTransport.cpp	Sun Mar 16 17:41:10 2014 +0000
@@ -353,9 +353,9 @@
                             this->m_connected = true;
                         }
                         else {
-                            this->logger()->log("MQTT Subscribe: Topic(PING): %s FAILED",MQTT_PING_TOPIC);
-                            this->logger()->turnLEDRed();
-                            this->m_connected = false;
+                            this->logger()->log("MQTT Subscribe: Topic(PING): %s FAILED (continuing...)",MQTT_PING_TOPIC);
+                            //this->logger()->turnLEDRed();
+                            //this->m_connected = false;
                         }
                     }
                     else {