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:
57:fb2f8e188383
Parent:
50:a9926b8b21fe
Child:
58:7033f5893210
--- a/main.cpp	Tue Apr 05 19:05:50 2016 +0000
+++ b/main.cpp	Tue Apr 05 19:22:52 2016 +0000
@@ -23,16 +23,16 @@
 {
     myled = !myled;
 }
-
+/*
 LWIPInterface eth;
-TCPSocket socket(&eth);
+TCPSocket socket(&eth);*/
 
 int main()
 {
     Ticker t;
     t.attach(flash, 0.4f);
     printf("NetworkSocketAPI Example\r\n");
-
+/*
     eth.connect();
 
     const char *ip = eth.getIPAddress();
@@ -52,5 +52,5 @@
 
     printf("Recieved: %ld bytes, %02x%02x%02x%02x\r\n", size,
            recieved[0], recieved[1], recieved[2], recieved[3]);
-    printf("NetworkSocketAPI Example Finished\r\n");
+    printf("NetworkSocketAPI Example Finished\r\n");*/
 }