ArduinoCore-renesas
ArduinoCore-renesas copied to clipboard
Ethernet - complete API (setHostname, dnsIP(n), hostByName, ...)
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
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.