Modify Interface for show DHCP IP
Dependencies: Socket lwip-eth lwip-sys lwip
Fork of EthernetInterface by
Diff: EthernetInterface.cpp
- Revision:
- 50:35bbd15e0d1c
- Parent:
- 37:926eb6517318
--- 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);
