Simple app demonstrating network join feature of WiConnect Host Library.

Dependencies:   WiConnect mbed

Revision:
8:504313ccb679
Parent:
3:15daf72c279c
Child:
9:ba592b3a5c64
diff -r 8d41c9a45374 -r 504313ccb679 example.cpp
--- a/example.cpp	Sat Aug 23 05:43:55 2014 -0700
+++ b/example.cpp	Tue Aug 26 16:34:15 2014 -0700
@@ -61,9 +61,6 @@
  */
 int main(int argc, char **argv)
 {
-    NetworkStatus networkStatus;
-
-
     consoleSerial.baud(115200); // console terminal to 115200 baud
 
     //-------------------------------------------------------------------------
@@ -112,10 +109,9 @@
     // STEP 4: Done!
     //-------------------------------------------------------------------------
 
+    printf("IP Address: %s\r\n", wiconnect.getIpAddress());
     printf("Network join example has completed!\r\n");
 
-    for(;;); // infinite loop
-
-    return 0;
+    while(true){} // infinite loop
 }