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: Station interface doesn't activate mDNS responder
So i have been trying to get one esp32 to connect to another, without actually hardcoding the ip of the "server".
I am a micropython newbie, but an older programmer, so i think the fact that this has taken me 2 days is a lot to do with documentation and the intricacies of MP and detailed knowledge of dns that mp should not assume a casual user has.
I would propose to add some lines to the esp32 network section, ie https://docs.micropython.org/en/latest/esp32/quickref.html
Maybe a line about how to set the hostname. (also when, if there are restrictions, ie before or after?)
The fact that one needs a station and it does not work with an ap
And that the station needs to be connected to a router.
Maybe a mention about the .local and how to ping from a pc.
And code to use the hostname from a second esp, ie in getaddrinfo.
I would be happy to make a pr for the esp docs if no one of the coders want to do this.