Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed mbed-rtos EthernetInterface
Revision 9:aca4ef49f633, committed 2019-09-25
- Comitter:
- dewantkatare
- Date:
- Wed Sep 25 16:35:42 2019 +0000
- Parent:
- 8:23b1fba109b0
- Commit message:
- TCP, UDP
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 Feb 14 16:20:16 2017 +0000 +++ b/EthernetInterface.lib Wed Sep 25 16:35:42 2019 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/EthernetInterface/#183490eb1b4a +https://os.mbed.com/users/dewantkatare/code/EthernetInterface/#80abd4e0478f
--- a/main.cpp Tue Feb 14 16:20:16 2017 +0000
+++ b/main.cpp Wed Sep 25 16:35:42 2019 +0000
@@ -7,14 +7,14 @@
EthernetInterface eth;
eth.init(); //Use DHCP
eth.connect();
- printf("\nServer IP Address is %s\n", eth.getIPAddress());
+ printf("\r\nServer IP Address is %s\n", eth.getIPAddress());
TCPSocketServer server;
server.bind(ECHO_SERVER_PORT);
server.listen();
while (true) {
- printf("\nWait for new connection...\n");
+ printf("\r\nWait for new connection...\n");
TCPSocketConnection client;
server.accept(client);
client.set_blocking(false, 1500); // Timeout after (1.5)s