ArduinoCore-renesas icon indicating copy to clipboard operation
ArduinoCore-renesas copied to clipboard

Ethernet - complete API (setHostname, dnsIP(n), hostByName, ...)

Open JAndrassy opened this issue 2 years ago • 1 comments

For legacy Ethernet API, setDnsServerIP was missing. Many Ethernet libraries have now the getters and setters as the WiFi API: setDNS, dnsIP(n), macAddress hostByName is useful to split blocking client.connect(gost, port) into to steps or debug DNS.

setDNS(dns1, dns2) is in the PR https://github.com/arduino/ArduinoCore-renesas/pull/200 that PR is important for dnsServerIP and dnsIP(n) too.

tested with LegacyEthernetTest

overview of API in librarries

JAndrassy avatar Dec 21 '23 06:12 JAndrassy

Thanks @JAndrassy! I'm just commenting to explain that the failure of the "Compile Examples" workflow run is caused by a bug in Arduino CLI; not by any problem introduced by this PR. So don't worry about that failure.

per1234 avatar Dec 21 '23 08:12 per1234