8000 Add ESP8266/32 WiFi.isConnected wrapper (#1166) · dyno-project/arduino-pico@bedcbf5 · GitHub
[go: up one dir, main page]

Skip to content

Commit bedcbf5

Browse files
Add ESP8266/32 WiFi.isConnected wrapper (earlephilhower#1166)
Fixes earlephilhower#1165
1 parent 7df080e commit bedcbf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/WiFi/src/WiFiClass.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ class WiFiClass {
8686
int begin(const char* ssid, const char *passphrase);
8787

8888
bool connected();
89+
bool isConnected() {
90+
return connected();
91+
}
8992
int8_t waitForConnectResult(unsigned long timeoutLength = 60000) {
9093
uint32_t now = millis();
9194
while (millis() - now < timeoutLength) {

0 commit comments

Comments
 (0)
0