* 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 <83468485+Cossid@users.noreply.github.com>
---------
Co-authored-by: Kuba Szczodrzyński <kuba@szczodrzynski.pl>
Co-authored-by: Cossid <83468485+Cossid@users.noreply.github.com>