Fork of mbed official TCPSocket_Helloworld using PicoTCP
Dependencies: PicoTCP lpc1768-picotcp-eth mbed-rtos mbed
Fork of TCPSocket_HelloWorld by
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:
Diff: main.cpp
- Revision:
- 2:e087e9b789e9
- Parent:
- 1:e2652bd064c6
- Child:
- 5:01f6c3e112af
--- 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);