Skip to content

Commit 410583e

Browse files
committed
Also, check for WL_AP_LISTENING and WL_AP_CONNECTED in WiFi::SSID
1 parent fa70ef2 commit 410583e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WiFi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ uint32_t WiFiClass::gatewayIP()
581581

582582
char* WiFiClass::SSID()
583583
{
584-
if (_status == WL_CONNECTED) {
584+
if (_status == WL_CONNECTED || _status == WL_AP_LISTENING || _status == WL_AP_CONNECTED) {
585585
return _ssid;
586586
}
587587
else {

0 commit comments

Comments
 (0)