MQTT with CC3000 Wi-Fi interface
Dependencies: ADT7410 MQTToveCC3000 MbedJSONValue NVIC_set_all_priorities cc3000_hostdriver_mbedsocket2 mbed
Fork of cc3000_simple_socket_demo by
Revision 13:4f08ef840b16, committed 2013-10-16
- Comitter:
- frankvnk
- Date:
- Wed Oct 16 21:15:29 2013 +0000
- Parent:
- 12:a88f83072b20
- Child:
- 14:5f84f9ae168e
- Commit message:
- Switch smartconfig to first time config when FTC is 0 in nvmem
Changed in this revision
| NVIC_set_all_priorities.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/NVIC_set_all_priorities.lib Sun Oct 13 16:39:01 2013 +0000 +++ b/NVIC_set_all_priorities.lib Wed Oct 16 21:15:29 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/frankvnk/code/NVIC_set_all_priorities/#676bbfffe9f6 +http://mbed.org/users/frankvnk/code/NVIC_set_all_priorities/#01504ecd2025
--- 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:
