Skip to content

Commit

Permalink
Removing passwordless WiFi.begin() which seems to cause hangs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dejwk committed Dec 4, 2023
1 parent 389d30f commit a12fde3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions examples/6digit_ntp_clock/6digit_ntp_clock.ino
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,6 @@ void bootMsg(const std::string& s) {
void initWiFi(std::string s) {
bootMsg(s);

WiFi.begin();
while (WiFi.status() == WL_DISCONNECTED) {
delay(50);
}
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Expand Down

0 comments on commit a12fde3

Please sign in to comment.