I have two ESP32. One has the example program mDNS_Web_Server.ino and the other mDNS-SD_Extended.ino. I also have two ESP8266 running the ESP8266 equivalents.
mDNS-SD_Extended can see the ESP8266 mDNS-Server, and a Raspberry Pi I also have on the network.
The ESP8266 with the mDNS-SD code can see the ESP8266 mDNS-Server.
Neither of these can see the ESP32 with the mDNS_Web_Server code.
Has anyone had any success with the two ESP32 example mDNS example programs working together?
mDNS_Web_Server example problem
Re: mDNS_Web_Server example problem
I found an open issue that says there is an error with the mDNS code. I tried the modification and then it worked.
https://github.com/espressif/arduino-esp32/issues/520
https://github.com/espressif/arduino-esp32/issues/520
Code: Select all
mDNS_Web_Server.ino includes the line:
MDNS.addService("http", "tcp", 80);
This causes avahi-browse on Linux to fail with "Invalid service type". Changing that line to the following fixes the issue.
MDNS.addService("_http", "_tcp", 80);
Who is online
Users browsing this forum: No registered users and 189 guests