
Simple example demonstrating WiConnect host library web setup feature.
Revision 10:63f9df429d05, committed 2014-11-27
- Comitter:
- dan_ackme
- Date:
- Thu Nov 27 00:01:47 2014 -0800
- Parent:
- 8:f27673474ef1
- Child:
- 11:3f4ad7cb7bd4
- 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:57:41 2014 +0000 +++ b/example.cpp Thu Nov 27 00:01:47 2014 -0800 @@ -97,8 +97,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 }