Skeleton program for Federico's 4YP project.
Dependencies: WebSocketClient WiflyInterface mbed messages
Fork of IoT_Ex by
Diff: main.cpp
- Revision:
- 3:f20e114eb2ee
- Parent:
- 2:7abdaa5a9209
- Child:
- 5:0c7d131e6089
--- a/main.cpp Tue Oct 04 13:59:13 2016 +0000 +++ b/main.cpp Tue Oct 04 16:20:14 2016 +0000 @@ -22,6 +22,9 @@ // Set the IoT ID: IoT_ID = 1; + // Set the Auto reconnect flag: + IotStatus.SetFlag(SF_AUTOCONNECT); + // Send a startup message to serial port: INFO(""); INFO(""); @@ -59,6 +62,7 @@ } + DisplayTimer.start(); // Inifinite loop: while(1) { @@ -99,11 +103,6 @@ // Reset the timer: DisplayTimer.reset(); - if(Led == 1){ - Led = 0; - }else{ - Led = 1; - } }