ACKme
/
wiconnect-mbed-udp_echo_client
UDP echo client using the WiConnect Library and mbed UDP Socket API.
Diff: main.cpp
- Revision:
- 5:f31112eedddd
- Parent:
- 4:9e8c1081a9eb
--- a/main.cpp Thu Nov 27 00:02:18 2014 -0800 +++ b/main.cpp Thu Nov 27 10:27:53 2014 +0000 @@ -5,10 +5,11 @@ #define NETWORK_SSID "<YOUR NETWORK SSID HERE>" #define NETWORK_PASSWORD "<YOUR NETWORK PASSWORD HERE>" -#define ECHO_SERVER_ADDRESS "192.168.1.110" +#define ECHO_SERVER_ADDRESS "<ECHO Server's IP Addres HERE>" #define ECHO_SERVER_PORT 7 + static Serial consoleSerial(STDIO_UART_TX, STDIO_UART_RX); static char in_buffer[256]; @@ -20,14 +21,15 @@ Wiconnect wiconnect(serialConfig, 256, NULL, WICONNECT_RESET_PIN); consoleSerial.baud(115200); + printf("Initializing WiConnect...\r\n"); 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"); + 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\r\n\r\n"); } for(;;); }