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
README.txt@6:74c1e9c8c90e, 2014-10-09 (annotated)
- Committer:
- ansond
- Date:
- Thu Oct 09 16:14:18 2014 +0000
- Revision:
- 6:74c1e9c8c90e
- Parent:
- 0:26c48388f725
updates of the 2013 DF heroku app ported to K64F+appshield
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 0:26c48388f725 | 1 | Instructions: |
ansond | 0:26c48388f725 | 2 | |
ansond | 0:26c48388f725 | 3 | 1). Complete the “hands-on” exercises first |
ansond | 0:26c48388f725 | 4 | - Required to get setup with an mbed account and the compiler environment |
ansond | 0:26c48388f725 | 5 | |
ansond | 6:74c1e9c8c90e | 6 | 2). Import the “df-2013-minihack-thermostat-k64f” project into your mbed project workspace |
ansond | 6:74c1e9c8c90e | 7 | - Be sure to add and make current the “FRDM-K64F” board as the current board |
ansond | 0:26c48388f725 | 8 | to compile to. You can modify the GPS coords and devie name in the same manner |
ansond | 0:26c48388f725 | 9 | that you did in the hands-on session - this will enable you to quickly and easily |
ansond | 0:26c48388f725 | 10 | identify your device on the map |
ansond | 0:26c48388f725 | 11 | |
ansond | 0:26c48388f725 | 12 | 3). Examine Thermostat.cpp in your project |
ansond | 0:26c48388f725 | 13 | - In the top of the file, examine the Mini-hack challenge statement |
ansond | 0:26c48388f725 | 14 | - Follow those instructions to modify the code to create a way to write text from the |
ansond | 0:26c48388f725 | 15 | Heroku webservice |
ansond | 0:26c48388f725 | 16 | |
ansond | 0:26c48388f725 | 17 | A successful implementation will: |
ansond | 0:26c48388f725 | 18 | - Enable you to see your mbed device on the map |
ansond | 0:26c48388f725 | 19 | - Clicking on the device name (its a URL link) you should be able to go to the Devices |
ansond | 0:26c48388f725 | 20 | - page on the website and enter "text" for the message name followed by a text message |
ansond | 0:26c48388f725 | 21 | - after a brief delay, the text message should pop up briefly on the mbed device LCD |
ansond | 0:26c48388f725 | 22 | |
ansond | 0:26c48388f725 | 23 | References: |
ansond | 0:26c48388f725 | 24 | - Project Source: http://mbed.org/teams/MBED_DEMOS/code/df-2013-minihack-thermostat/ |
ansond | 0:26c48388f725 | 25 | - Completed Code: http://mbed.org/teams/MBED_DEMOS/code/df-2013-minihack-thermostat-complete/ |
ansond | 6:74c1e9c8c90e | 26 | |
ansond | 6:74c1e9c8c90e | 27 | To View Connected Devices |
ansond | 6:74c1e9c8c90e | 28 | - http://mc-control-1.herokuapp.com (username: <blank> password: foobar) |