mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
f7222e39bb9612bf4eb71e36ca4c185b2fdbfdf7
wifi_sta_connect_status_() is a non-inlined function call that reads 3 static globals through literal pool indirections on every loop iteration. Since those globals are only modified during event processing, skip the call entirely when wifi_loop_() found no events and we're already in STA_CONNECTED state. wifi_loop_() now returns bool (true if events were processed) on all platforms. ESP8266 and Pico W always return true since they poll state directly rather than using an event queue.
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
546 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
