mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
c7560f68783d8c46d6fe496bfd659ed7ca3545a3
The RP2040's LEAmDNS library relies on LwipIntf::stateUpCB() to restart mDNS when the network interface reconnects. However, this callback is stubbed out in arduino-pico because the original ESP8266 implementation used schedule_function() which doesn't exist in arduino-pico, and the callback can't safely run directly since netif status callbacks fire from IRQ context while _restart() allocates UDP sockets. The previous workaround blocked all component setup via can_proceed() until WiFi connected, which only helped on initial boot but did not handle reconnects. Replace with a proper fix: detect WiFi reconnection from the existing 50ms mDNS update interval (main loop context) and call MDNS.notifyAPChange() to restart mDNS probing and announcing.
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
545 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
