Skip to content

Commit

Permalink
ESP32: check ap info in IsStationConnected (#31438)
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 authored Jan 16, 2024
1 parent 711d039 commit 9958ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/ESP32/ESP32Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ bool ESP32Utils::IsStationProvisioned(void)
CHIP_ERROR ESP32Utils::IsStationConnected(bool & connected)
{
wifi_ap_record_t apInfo;
connected = (esp_wifi_sta_get_ap_info(&apInfo) == ESP_OK);
connected = (esp_wifi_sta_get_ap_info(&apInfo) == ESP_OK && apInfo.ssid[0] != 0);
return CHIP_NO_ERROR;
}

Expand Down

0 comments on commit 9958ed1

Please sign in to comment.