MBED_DEMOS / Mbed 2 deprecated mbed_mqtt_endpoint_nxp

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

Revision:
85:9fdd9198001c
Parent:
79:67accc95965a
Child:
86:2f9b9e0c7639
diff -r a50f8d0ec197 -r 9fdd9198001c MBEDEndpoint.cpp
--- a/MBEDEndpoint.cpp	Thu Mar 06 06:00:31 2014 +0000
+++ b/MBEDEndpoint.cpp	Thu Mar 06 17:09:38 2014 +0000
@@ -312,17 +312,17 @@
      }
      
      // Special Case: STARTDATETIME
-     strcat(data,"\"STARTDATETIME\":\"2014-02-27T22:03:06.973Z\",");
+     strcat(data,ENDPOINT_STARTTIME);
      
      // Special Case: ENDDATETIME
-     strcat(data,"\"ENDDATETIME\":\"2015-02-27T03:35:55.940Z\",");
+     strcat(data,ENDPOINT_STOPTIME);
                 
      // Special Case: NAME
      sprintf(tmp,"\"NAME\":\"%s\",",light->getName());
      strcat(data,tmp);
           
      // Special Case: TIMEZONEOFFSET
-     strcat(data,"\"TIMEZONEOFFSET\":\"+2:00\"");
+     strcat(data,ENDPOINT_TIMEZONE);
           
      // close
      strcat(data,"}");