-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
@DieterBurandt
Description
The Ethernet2 (and Ethernet) library supports reading the following parameters from the W5500 board:
- localIP
- subnetMask
- gatewayIP
- dnsServerIP
Curiously the two other parameters are missing:
- MacAddr
- dhcpServerIP
For maintenance purpose the two missing calls should be added. The W5500 driver already supports these calls, so it is very simple to do:
For the new Arduino Ethernet Shield V2 R1.0.3 ==>
Add to Ethernet2.h =>
IPAddress dhcpServerIP();
void MacAddr(uint8_t * Mac);
and to Ethernet2.cpp =>
IPAddress EthernetClass::dhcpServerIP()
{
return _dhcp->getDhcpServerIp();
}
void EthernetClass::MacAddr(uint8_t * Mac)
{
w5500.getMACAddress(Mac);
}