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: HTTPClient WebSocketClient cc3000_hostdriver_mbedsocket mbed
Fork of CC3000_demo by
Revision 8:594cb3bc6f0f, committed 2014-10-10
- Comitter:
- antoni0
- Date:
- Fri Oct 10 23:54:39 2014 +0000
- Parent:
- 7:47cd0d3d5e4d
- Child:
- 9:f80b62b60b1c
- Commit message:
- fixed led behavior on connection
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 10 23:38:09 2014 +0000
+++ b/main.cpp Fri Oct 10 23:54:39 2014 +0000
@@ -13,6 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
+ /**
+ * \brief EECS149 demo
+ * \author Antonio Iannopollo
+ */
+
#include "mbed.h"
#include "cc3000.h"
#include "main.h"
@@ -57,7 +63,7 @@
pc.baud(115200);
led_red = 1;
- led_green = 0;
+ led_green = 1;
printf("EECS149 email notifier. \r\n");
wifi.init();
@@ -68,6 +74,8 @@
printf("Failed to connect. Please verify connection details and try again. \r\n");
} else {
printf("IP address: %s \r\n",wifi.getIPAddress());
+ led_red = 1;
+ led_green = 0;
}
} else {
//GET mail data
