Modify Interface for show DHCP IP
Dependencies: Socket lwip-eth lwip-sys lwip
Fork of EthernetInterface by
Revision 50:35bbd15e0d1c, committed 2015-08-12
- Comitter:
- ericliang
- Date:
- Wed Aug 12 02:37:58 2015 +0000
- Parent:
- 42:f69b81aa9eb1
- Commit message:
- Init Smart Traffic Project
Changed in this revision
EthernetInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f69b81aa9eb1 -r 35bbd15e0d1c EthernetInterface.cpp --- a/EthernetInterface.cpp Wed Jul 30 15:21:46 2014 +0000 +++ b/EthernetInterface.cpp Wed Aug 12 02:37:58 2015 +0000 @@ -56,6 +56,7 @@ strcpy(gateway, inet_ntoa(netif->gw)); strcpy(networkmask, inet_ntoa(netif->netmask)); netif_up.release(); + printf("Device IP to %s\n", ip_addr); } } @@ -80,6 +81,8 @@ mbed_mac_address(mac); snprintf(mac_addr, 19, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); #endif + + printf("%s\n", mac_addr); } int EthernetInterface::init() { @@ -114,6 +117,7 @@ // Wait for an IP Address // -1: error, 0: timeout inited = netif_up.wait(timeout_ms); + printf("Device Up = %d\n", inited); } else { netif_set_up(&netif);