Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e99f1fd

Browse files
fix(wifi): fixes isconnected() to return true when it has ip addr (#10595)
1 parent 54a7a3e commit e99f1fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎libraries/WiFi/src/WiFiSTA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ bool WiFiSTAClass::bandwidth(wifi_bandwidth_t bandwidth) {
215215
* @return true if STA is connected to an AP
216216
*/
217217
bool WiFiSTAClass::isConnected() {
218-
return STA.connected();
218+
return STA.connected() && STA.hasIP();
219219
}
220220

221221
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /