ESP32 mDNS support on Ethernet (class LAN)
Hi guys,
I wanted to know if there is a specific reason why the mDNS is supported on the WLAN interface (via hostname config parameter) for ESP32 but it is not supported on the LAN/Ethernet interface. There seems to be no limitation in IDF's TCP/IP Adapter library for this, but the ESP32 port does not expose a config parameter to set this.
esp32: Add support for mDNS queries and responder.
This adds support to the esp32 for mDNS queries and a responder. See discussion in #4912.
For queries do: socket.getaddrinfo('device.local', 123)
The responder is automatically enabled, with default hostname "esp32.local".
TODO: work out a way to specify the hostname. Probably need a new config option wlan.config(mdns_hostname=...). Or could reuse wlan.config(dhcp_hostname=...). Even though there are different concepts of hostnames it'd probably be a good idea to unify them into a single config, eg wlan.config(hostname=...).