ACKme
/
wiconnect-web_setup_example
Simple example demonstrating WiConnect host library web setup feature.
Diff: example.cpp
- Revision:
- 10:63f9df429d05
- Parent:
- 7:723f12b7b0de
- Child:
- 11:3f4ad7cb7bd4
--- 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 }