Dreamforce Heroku Sample mbed application for the FRDM-K64F. This application uses SocketIO to connect and communicate with Heroku.
Dependencies: BufferedSerial C12832 EthernetInterface HTTPClient-SSL LM75B MMA7660 SocketIO-k64f WebSocketClient-ThermostatDemo mbed-rtos mbed picojson
Fork of df-2013-minihack-thermostat-complete by
Diff: Thermostat.cpp
- Revision:
- 6:74c1e9c8c90e
- Parent:
- 3:9f70d34d3660
--- a/Thermostat.cpp Mon Nov 11 20:35:49 2013 +0000 +++ b/Thermostat.cpp Thu Oct 09 16:14:18 2014 +0000 @@ -67,13 +67,13 @@ // Accelerometer Support // #include "MMA7660.h" -MMA7660 acc(p28, p27); +MMA7660 acc(D14,D15); // // Temperature Sensor Support // #include "LM75B.h" -LM75B temp_sensor(p28,p27); +LM75B temp_sensor(D14,D15); // // Ethernet support @@ -312,11 +312,7 @@ if (ethernet.connect() == 0) connected = true; // check connection status - if (connected) { - ipAddr = ethernet.getIPAddress(); - if (ipAddr != NULL && strlen(ipAddr) > 0) - connected = true; - } + if (connected) ipAddr = ethernet.getIPAddress(); // log if (connected == true) {