DreamForce 2013 Hands-On Demo

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

Fork of ThermostatHandsOn by Doug Anson

Committer:
ansond
Date:
Mon Nov 11 20:35:13 2013 +0000
Revision:
7:57681d46485d
Parent:
1:dfd24f608038
updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 1:dfd24f608038 1 /* Thermostat-Location.h */
ansond 1:dfd24f608038 2 /* Copyright (C) 2013 mbed.org, MIT License
ansond 1:dfd24f608038 3 *
ansond 1:dfd24f608038 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ansond 1:dfd24f608038 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
ansond 1:dfd24f608038 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ansond 1:dfd24f608038 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ansond 1:dfd24f608038 8 * furnished to do so, subject to the following conditions:
ansond 1:dfd24f608038 9 *
ansond 1:dfd24f608038 10 * The above copyright notice and this permission notice shall be included in all copies or
ansond 1:dfd24f608038 11 * substantial portions of the Software.
ansond 1:dfd24f608038 12 *
ansond 1:dfd24f608038 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ansond 1:dfd24f608038 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ansond 1:dfd24f608038 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ansond 1:dfd24f608038 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ansond 1:dfd24f608038 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ansond 1:dfd24f608038 18 */
ansond 1:dfd24f608038 19
ansond 1:dfd24f608038 20 #ifndef THERMOSTAT_LOCATION_H_
ansond 1:dfd24f608038 21 #define THERMOSTAT_LOCATION_H_
ansond 1:dfd24f608038 22
ansond 1:dfd24f608038 23 // initialize our location
ansond 1:dfd24f608038 24 void Thermostat::initLocation() {
ansond 1:dfd24f608038 25 }
ansond 1:dfd24f608038 26
ansond 1:dfd24f608038 27 // update our location coordinates
ansond 1:dfd24f608038 28 void Thermostat::updateCoordinates() {
ansond 1:dfd24f608038 29 this->m_latitude = DEFAULT_LATITUDE;
ansond 1:dfd24f608038 30 this->m_longitude = DEFAULT_LONGITUDE;
ansond 1:dfd24f608038 31
ansond 1:dfd24f608038 32 this->display("Location: Latitude:%2.4f Longitude:%2.4f",this->m_latitude,this->m_longitude);
ansond 1:dfd24f608038 33 this->display_lcd("Location Coordinates\r\nLatitude: %2.4f\r\nLongitude: %2.4f",this->m_latitude,this->m_longitude);
ansond 1:dfd24f608038 34 }
ansond 1:dfd24f608038 35
ansond 1:dfd24f608038 36 #endif // THERMOSTAT_LOCATION_H_