Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[beken-72xx] Fix race condition when checking Wi-Fi SSID (#274)
* Fix for a race condition in WiFi connection loop There seems to be the race between the event RW_EVT_STA_CONNECTED and an actual valid SSID value returned by BDK. If even a small delay is injected immediately after the event reception the valid value becomes available. Without this fix, due to a polling nature of ESPHome WiFiComponent::check_connecting_finished function may observe the WiFiSTAConnectStatus::CONNECTED status but with an empty SSID value, leading to `Incomplete connection.` warning and immediate attempt to start another connection, while the current one was actually established. * Fixed clang format conformance * Apply suggestions from code review * Update cores/beken-72xx/arduino/libraries/WiFi/WiFiEvents.cpp Co-authored-by: Cossid <[email protected]> --------- Co-authored-by: Kuba Szczodrzyński <[email protected]> Co-authored-by: Cossid <[email protected]>
- Loading branch information