Fork of mbed official TCPSocket_Helloworld using PicoTCP

Dependencies:   PicoTCP lpc1768-picotcp-eth mbed-rtos mbed

Fork of TCPSocket_HelloWorld by mbed official

This is a fork of the official TCPSocket_Helloworld from mbed. (https://mbed.org/users/mbed_official/code/TCPSocket_HelloWorld/).

This project demonstrates that the PicoTCP library basically provides the same API calls, so in order to change the TCP/IP stack of your application, you only need to remove the EthernetInterface library and replace it with the following two projects:

Files at this revision

API Documentation at this revision

Comitter:
emilmont
Date:
Mon Jul 02 10:54:00 2012 +0000
Parent:
1:e2652bd064c6
Child:
3:46a2ada58e97
Commit message:
Remove debug directives avoiding to change the default settings of the serial port. Add print of the IP address assigned by DHCP.

Changed in this revision

EthernetInterface.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
--- a/EthernetInterface.lib	Tue Jun 26 15:34:26 2012 +0000
+++ b/EthernetInterface.lib	Mon Jul 02 10:54:00 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/EthernetInterface/#c50597f8d7a2
+http://mbed.org/users/mbed_official/code/EthernetInterface/#73a6916d991e
--- 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);