Description
This issue has been previously posted by others but was erroneously closed as "stale" without resolution. It is still a problem.
Hardware:
Board: LOLIN32, MH-ET-LIVE, DOIT devkit v1 and others. Happens with all ESP32 hardware I've tested.
Core Installation version: 1.0.4
IDE name: Arduino IDE
Flash Frequency: 80Mhz
PSRAM enabled: no
Description:
I'm trying to use MDNS. Using the mDNS_Web_Server example, when the device starts, I am able to access the page at 'esp32.local/'. However, after two minutes, this stops working.
Manually resolving the mDNS address shows the same behavior - it works for the first two minutes after the device is started, then simply stops working.
I did a Wireshark capture on the IP address of the ESP32. It broadcasts the mDNS messages, with a TTL of 2 minutes. It only ever broadcasts those messages at startup (I left the device for ~20m).
If I manually call MDNS.begin periodically, it works, but the correct function for this is update() which is missing from the ESP32 version.
I was able to reproduce this on multiple dev boards, and several others have reported the same issue.
Sketch:
mDNS_Web_Server example (only modified to set the ssid/password)
Debug Messages:
None