Weather control switch for connected day. NXP LPC 1768 module. Ethernet connectivity.

Dependencies:   EthernetInterface mbed-rtos mbed nanoservice_client_1_12

Fork of Trenton_Switch_LPC1768_WIFLY by Demo Team

Revision:
11:991f6c2444e9
Parent:
10:09a1dd3fbd3d
Child:
13:4f08ef840b16
--- 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();