Skip to content

Commit

Permalink
if WIFI_PASS is an empty string, connect with WiFi.begin(_ssid); for …
Browse files Browse the repository at this point in the history
…unsecure network config
  • Loading branch information
guutz committed Mar 21, 2024
1 parent 7f04b63 commit 55dcaf8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wifi/AdafruitIO_WINC1500.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ class AdafruitIO_WINC1500 : public AdafruitIO {
return;
}

WiFi.begin(_ssid, _pass);
if (_pass && strlen(_pass) > 0)
WiFi.begin(_ssid, _pass);
else
WiFi.begin(_ssid);
_status = AIO_NET_DISCONNECTED;
}
}
Expand Down

0 comments on commit 55dcaf8

Please sign in to comment.