mirror of
https://github.com/esphome/esphome.git
synced 2026-02-18 23:45:40 -07:00
591c0e9c6566668d76a4142c0f27aed5fc4b225c
On ESP8266 and RP2040, MDNS.update() was called every loop iteration (~120 Hz) but only manages timer-driven probe/announce state machines. Incoming mDNS packets are handled independently via the lwIP onRx UDP callback and are unaffected by update() frequency. Replace the loop() override with set_interval() at 50ms. This removes the component from the loop list entirely via has_overridden_loop(), eliminating all per-iteration overhead including virtual dispatch. The 50ms interval provides sufficient resolution for all internal timers (shortest is 250ms probe interval per RFC 6762 Section 8.1).
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
362 MiB
Languages
C++
64.2%
Python
35.5%
C
0.2%
