MBED MQTT Lighting Endpoint for NXP LPC1768+AppBoard

Dependencies:   C12832_lcd EthernetInterface StatusReporter LM75B MQTT-ansond endpoint_core endpoint_mqtt mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Sun Mar 09 18:52:07 2014 +0000
Parent:
88:b3a5038fc367
Child:
90:b71b8107bf4b
Commit message:
updates

Changed in this revision

Definitions.h 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 09 16:56:09 2014 +0000
+++ b/Definitions.h	Sun Mar 09 18:52:07 2014 +0000
@@ -46,9 +46,9 @@
 #define ENDPOINT_GPS_COORDS         "-115.143470 36.131916"          // golf course -115.143470 36.131916 
 
 // MBED doesnt have a good notion of time - so we code it here
-#define ENDPOINT_STARTTIME          "\"STARTDATETIME\":\"2014-03-9T22:03:06.973Z\","
-#define ENDPOINT_STOPTIME           "\"ENDDATETIME\":\"2014-03-10T03:35:55.940Z\","
-#define ENDPOINT_TIMEZONE           "\"TIMEZONEOFFSET\":\"-7:00\""
+#define ENDPOINT_STARTTIME          "\"STARTDATETIME\":\"2014-03-09T22:03:06-07:00\","
+#define ENDPOINT_STOPTIME           "\"ENDDATETIME\":\"2014-03-10T03:35:55-07:00\","
+#define ENDPOINT_TIMEZONE           "\"TIMEZONEOFFSET\":\"-07:00\""
 
 // Keyword Definitions for MQTT packets
 #define IOC_REQUEST_LOAD_ALL_VERB   "load"
--- a/MQTTTransport.cpp	Sun Mar 09 16:56:09 2014 +0000
+++ b/MQTTTransport.cpp	Sun Mar 09 18:52:07 2014 +0000
@@ -86,8 +86,10 @@
                    strcpy(this->m_endpoint_name,endpoint_name);
                }
           }
+          //this->logger()->log("MQTT Topic (discovered): %s  Original: %s",this->m_endpoint_name,topic);
           return this->m_endpoint_name;
        }
+       //this->logger()->log("MQTT Topic (discovered): NULL  Original: %s",topic);
        return NULL;
  }