mbed Sensor node for Instrumented Booth over ETH.

Dependencies:   EthernetInterface-1 MaxbotixDriver Presence HTU21D_TEMP_HUMID_SENSOR_SAMPLE Resources SHARPIR mbed-rtos mbed-src WDT_K64F nsdl_lib

Fork of Trenton_Switch_LPC1768_ETH 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();