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
Diff: main.cpp
- Revision:
- 3:58f1cc293901
- Parent:
- 0:26c48388f725
--- a/main.cpp Fri Nov 08 20:10:52 2013 +0000 +++ b/main.cpp Sun Nov 10 02:18:02 2013 +0000 @@ -5,6 +5,17 @@ Serial pc(USBTX, USBRX); Thermostat *thermostat = NULL; +// useful for KEIL Debugging +extern "C" void mbed_mac_address(char * mac) { + // define your own MAC Address + mac[0] = 0x00; + mac[1] = 0x01; + mac[2] = 0x02; + mac[3] = 0x03; + mac[4] = 0x04; + mac[5] = 0x05; +}; + // check for exit void checkForExit() { if (pc.readable()) { @@ -18,7 +29,7 @@ } } -int main() { +int main(int argc, char *argv[]) { thermostat = new Thermostat(); if (thermostat != NULL) thermostat->runDemo(); }