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
Diff: main.cpp
- 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: