mDNS_Web_Server example problem

-Rudy-
Posts: 31
Joined: Sun Feb 05, 2017 1:08 am

mDNS_Web_Server example problem

Postby -Rudy- » Fri Dec 01, 2017 2:15 am

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?

-Rudy-
Posts: 31
Joined: Sun Feb 05, 2017 1:08 am

Re: mDNS_Web_Server example problem

Postby -Rudy- » Sun Dec 03, 2017 3:24 am

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

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