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

Dependencies:   WiConnect mbed

Files at this revision

API Documentation at this revision

Comitter:
dan_ackme
Date:
Thu Nov 27 00:02:12 2014 -0800
Parent:
5:146aa620d96e
Child:
7:f70f91038918
Commit message:
added warning about outdated fw

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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)))