
Simple app demonstrating network join feature of WiConnect Host Library.
Revision 16:03409d4f1643, committed 2014-11-27
- Comitter:
- dan_ackme
- Date:
- Thu Nov 27 00:01:37 2014 -0800
- Parent:
- 10:6055678da632
- Child:
- 17:218e96a88188
- Commit message:
- added warning about outdated fw
Changed in this revision
example.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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 }