UDP echo client using the WiConnect Library and mbed UDP Socket API.

Dependencies:   WiConnect mbed

Files at this revision

API Documentation at this revision

Comitter:
dan_ackme
Date:
Thu Nov 27 10:27:53 2014 +0000
Parent:
4:9e8c1081a9eb
Commit message:
updated for latest wiconnect

Changed in this revision

WiConnect.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9e8c1081a9eb -r f31112eedddd WiConnect.lib
--- a/WiConnect.lib	Thu Nov 27 00:02:18 2014 -0800
+++ b/WiConnect.lib	Thu Nov 27 10:27:53 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/ACKme/code/WiConnect/#2d7ef60a9f2a
+http://mbed.org/teams/ACKme/code/WiConnect/#5ee74d72efe4
diff -r 9e8c1081a9eb -r f31112eedddd main.cpp
--- 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(;;);
     }