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

Appearance settings

Commit e99f1fd

Browse filesBrowse files
authored
fix(wifi): fixes isconnected() to return true when it has ip addr (espressif#10595)
1 parent 54a7a3e commit e99f1fd
Copy full SHA for e99f1fd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎libraries/WiFi/src/WiFiSTA.cpp

Copy file name to clipboardExpand all lines: libraries/WiFi/src/WiFiSTA.cpp
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.