TCPSocket_Ethernet modify

Dependencies:   EthernetInterface2 mbed-rtos mbed

Fork of TCPSocket_HelloWorld by mbed official

Revision:
2:e087e9b789e9
Parent:
1:e2652bd064c6
Child:
5:01f6c3e112af
diff -r e2652bd064c6 -r e087e9b789e9 main.cpp
--- a/main.cpp	Tue Jun 26 15:34:26 2012 +0000
+++ b/main.cpp	Mon Jul 02 10:54:00 2012 +0000
@@ -5,8 +5,8 @@
 {
     EthernetInterface eth;
     eth.init(); //Use DHCP
-
     eth.connect();
+    printf("IP Address is %s\n", eth.getIPAddress());
     
     TCPSocket sock;
     sock.connect("mbed.org", 80);