Example program for the LWIPInterface

Dependencies:   LWIPInterface NetworkSocketAPI mbed-rtos mbed

Fork of HelloESP8266Interface by NetworkSocketAPI

Example for the NetworkSocketAPI. Attempts to get the device's public facing IP address from ifcfg.me.

Revision:
27:ccedb4ad0033
Parent:
26:4242277cf9c7
Child:
30:f80540b6e2db
diff -r 4242277cf9c7 -r ccedb4ad0033 main.cpp
--- a/main.cpp	Tue Feb 02 22:22:15 2016 +0000
+++ b/main.cpp	Tue Feb 02 22:25:09 2016 +0000
@@ -29,7 +29,7 @@
     printf("NetworkSocketAPI Example\r\n");
 
     wifi.init();
-    wifi.connect("Lakehouse", "Sandcastle");
+    wifi.connect("WifiDemo", "");
     
     char* ip = wifi.getIPAddress();
     printf("IP Address is: %s\n", (ip) ? ip : "No IP");
@@ -41,8 +41,7 @@
     char recieved[100] = {0};
     int recv_amnt = 0;
     
-    //Sending and receiving from echo server 
-    //mySocket->setAddressPort("129.6.15.28", 37);
+    //Sending and receiving from echo server
     mySocket->setAddressPort(host_ip, 37);
     mySocket->open();
     //mySocket->send("xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx", 50, 10000);