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:
13:4f08ef840b16
Parent:
11:991f6c2444e9
Child:
14:5f84f9ae168e
--- 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: