Skip to content

Commit

Permalink
fix(wifi): fixes isconnected() to return true when it has ip addr (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
SuGlider authored Nov 11, 2024
1 parent 54a7a3e commit e99f1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/WiFi/src/WiFiSTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ bool WiFiSTAClass::bandwidth(wifi_bandwidth_t bandwidth) {
* @return true if STA is connected to an AP
*/
bool WiFiSTAClass::isConnected() {
return STA.connected();
return STA.connected() && STA.hasIP();
}

/**
Expand Down

0 comments on commit e99f1fd

Please sign in to comment.