ACKme
/
wiconnect-http_get_example
Simple app demonstrating the HTTP GET feature of the WiConnect Host Library.
Diff: example.cpp
- Revision:
- 12:106e10b527f9
- Parent:
- 6:f6cf38fba1d4
- Child:
- 13:32538c7842e6
diff -r b426782db6ae -r 106e10b527f9 example.cpp --- a/example.cpp Tue Aug 26 23:54:53 2014 +0000 +++ b/example.cpp Thu Nov 27 00:00:08 2014 -0800 @@ -83,8 +83,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 }