Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: WebSocketClient WiflyInterface mbed messages
Fork of IoT_Ex by
Diff: main.cpp
- Revision:
- 3:f20e114eb2ee
- Parent:
- 2:7abdaa5a9209
- Child:
- 5:0c7d131e6089
diff -r 7abdaa5a9209 -r f20e114eb2ee main.cpp
--- 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;
- }
}
