TCP echo client using the WiConnect library and mbed TCP Socket API.

Dependencies:   WiConnect mbed

Revision:
6:b425959b75f0
Parent:
0:447a1bbce2ca
Child:
7:f70f91038918
--- a/main.cpp	Tue Aug 26 16:34:32 2014 -0700
+++ b/main.cpp	Thu Nov 27 00:02:12 2014 -0800
@@ -24,6 +24,11 @@
     if(WICONNECT_FAILED(result, wiconnect.init(true)))
     {
         printf("Failed to initialize Wiconnect: %s\r\n", Wiconnect::getWiconnectResultStr(result));
+        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");
+        }
         for(;;);
     }
     else if(WICONNECT_FAILED(result, wiconnect.join(NETWORK_SSID, NETWORK_PASSWORD)))