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: WiflyInterface mbed nanoservice_client_1_12
Fork of cc3000_simple_socket_demo by
Diff: main.cpp
- Revision:
- 13:4f08ef840b16
- Parent:
- 11:991f6c2444e9
- Child:
- 14:5f84f9ae168e
diff -r a88f83072b20 -r 4f08ef840b16 main.cpp
--- a/main.cpp Sun Oct 13 16:39:01 2013 +0000
+++ b/main.cpp Wed Oct 16 21:15:29 2013 +0000
@@ -173,13 +173,18 @@
case '9':
printf("Starting Smart Config configuration. \r\n");
- start_smart_config();
+ if (!user_info.FTC) {
+ printf("First Time Configuration was not run. \r\nSwitching to First Time Configuration. \r\n");
+ do_FTC();
+ wifi._wlan.stop();
+ } else {
+ start_smart_config();
+ }
while (wifi.is_dhcp_configured() == false)
{
wait_ms(500);
printf("Waiting for dhcp to be set. \r\n");
}
-
printf("Press the reset button on your board and select 0... \r\n");
while(1);
default:
