Simple app demonstrating network join feature of WiConnect Host Library.

Dependencies:   WiConnect mbed

Revision:
16:03409d4f1643
Parent:
9:ba592b3a5c64
Child:
17:218e96a88188
--- a/example.cpp	Tue Aug 26 23:55:18 2014 +0000
+++ b/example.cpp	Thu Nov 27 00:01:37 2014 -0800
@@ -87,8 +87,16 @@
     // Initialize communication with WiFi module
     if(wiconnect.init(true) != WICONNECT_SUCCESS)
     {
-        printf("Failed to initialize communication with WiFi module!\r\n"
-                "Make sure the wires are connected correctly\r\n");
+        if(result == WICONNECT_FIRMWARE_OUTDATED)
+        {
+            printf("The WiFi firmware is not supported. Run the ota example to update the firmware:\r\n");
+            printf("https://developer.mbed.org/teams/ACKme/code/wiconnect-ota_example");
+        }
+        else
+        {
+            printf("Failed to initialize communication with WiFi module!\r\n"
+                   "Make sure the wires are connected correctly\r\n");
+        }
         for(;;); // infinite loop
     }