Connections to Xively working; has 5 channels on Xively (axl_x, axl_y, axl_z, heater_status, temperature)

Dependencies:   C12832_lcd EthernetInterface LM75B MMA7660 NTPClient libxively mbed-rtos mbed

Revision:
4:05986b9ea330
Parent:
3:3a48ed10d6fe
Child:
5:59ac8fb475f2
Child:
6:d5023e875887
diff -r 3a48ed10d6fe -r 05986b9ea330 main.cpp
--- a/main.cpp	Sun May 18 03:50:03 2014 +0000
+++ b/main.cpp	Mon May 19 15:40:00 2014 +0000
@@ -143,12 +143,15 @@
                 printf("Temp change: %.1f F\n\r", temp);
                 currentTemp = temp;
                 lcd.locate(0,0);
+                //updates the temperature line of the display
                 lcd.printf("\n\r%.1f LOW: %.0f HIGH: %.0f", temp, lowTemp, highTemp);
                 sendTempJSON();
             }
 
             lcd.locate(0,0);
-            //Heater logic: turns off if it has gone over the high temp, on if under the low temp
+            
+            //Heater logic: turns off if it has gone over the high temp and is on,
+            //or if under the low temp and is off
             if (heaterOn && (temp > highTemp) ) {
                 printf("Heater turned OFF\n\r");
                 heaterOn = 0;