nagaraju malla reddy palle
/
Ethernet_Interface
Ethernet_Interface
Revision 3:4f94cb9e70d0, committed 2018-03-21
- Comitter:
- agaikwad
- Date:
- Wed Mar 21 16:36:41 2018 +0000
- Parent:
- 2:50f1485931f1
- Commit message:
- Ethernet Interface Example
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 50f1485931f1 -r 4f94cb9e70d0 main.cpp --- a/main.cpp Fri Jun 23 14:13:09 2017 -0500 +++ b/main.cpp Wed Mar 21 16:36:41 2018 +0000 @@ -7,12 +7,12 @@ // Socket demo int main() { // Bring up the ethernet interface - printf("Ethernet socket example\n"); + printf("Reading Ethernet address:\n"); net.connect(); // Show the network address const char *ip = net.get_ip_address(); - printf("IP address is: %s\n", ip ? ip : "No IP"); + printf("IP address of device is: %s\n", ip ? ip : "No IP"); // Open a socket on the network interface, and create a TCP connection to mbed.org TCPSocket socket;