Fork of KL46Z Wifi version. Moved to KL25Z as umbrella stand now requires 2 SPIs, thus requires 46z.

Dependencies:   WIZnet_Library_ASE mbed nanoservice_client_1_12

Fork of Trenton_Doormat_FRDM-KL25Z_ETH by Eric Gowland

Revision:
11:991f6c2444e9
Parent:
10:09a1dd3fbd3d
Child:
13:4f08ef840b16
diff -r 09a1dd3fbd3d -r 991f6c2444e9 main.cpp
--- a/main.cpp	Thu Oct 10 07:17:17 2013 +0200
+++ b/main.cpp	Thu Oct 10 20:44:01 2013 +0000
@@ -134,6 +134,7 @@
     printf("\n<0> Normal run. SmartConfig will \r\n    start if no valid connection exists. \r\n");
     printf("<1> Connect using fixed SSID without AP_KEY: %s \r\n", SSID);
     printf("<2> Connect using fixed SSID with AP_KEY: %s \r\n", SSID);
+    printf("<8> Erase all stored profiles.\r\n");
     printf("<9> SmartConfig. \r\n");
 
     signed char c = getchar();
@@ -163,6 +164,13 @@
             connect_to_ssid(SSID);
 #endif
             break;
+        case '8':
+            printf("Erasing all wireless profiles. \r\n");
+            wifi.delete_profiles();
+            wifi.stop();
+            printf("Done - press the reset button on your board... \r\n");
+            while(1);
+
         case '9':
             printf("Starting Smart Config configuration. \r\n");
             start_smart_config();