Dreamforce 2013 MiniHack Thermostat Challenge - remotes

Dependencies:   C12832_lcd EthernetInterface-ansond-patched HTTPClient-thermostat-remotes LM75B MMA7660 SocketIO WebSocketClient-ThermostatDemo mbed-rtos mbed picojson

Fork of df-2013-minihack-thermostat-complete by MBED_DEMOS

Revision:
3:58f1cc293901
Parent:
0:26c48388f725
Child:
6:33f71cf9a04f
--- a/Thermostat-Location.h	Fri Nov 08 20:10:52 2013 +0000
+++ b/Thermostat-Location.h	Sun Nov 10 02:18:02 2013 +0000
@@ -26,8 +26,8 @@
 
 // update our location coordinates
 void Thermostat::updateCoordinates() {
-    this->m_latitude = DEFAULT_LATITUDE;
-    this->m_longitude = DEFAULT_LONGITUDE;
+    this->m_latitude = latitudes[location_index];
+    this->m_longitude = longitudes[location_index];
     
     this->display("Location: Latitude:%2.4f Longitude:%2.4f",this->m_latitude,this->m_longitude);
     this->display_lcd("Location Coordinates\r\nLatitude: %2.4f\r\nLongitude: %2.4f",this->m_latitude,this->m_longitude);