Skip to content

Commit 37784a5

Browse files
committed
fix: add esp32 dns lookup fix
1 parent 011d4be commit 37784a5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/OTAUpdate/OTAUpdate.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ void setupWiFi() {
9292
delay(250);
9393
}
9494

95-
#if defined(ESP32)
96-
WiFi.config(WiFi.localIP(), IPAddress(8, 8, 8, 8)); // Use Google DNS to fix DNS look-up errors.
97-
#endif
95+
// Enable to fix random DNS lookup errors
96+
// #if defined(ESP32)
97+
// WiFi.config(WiFi.localIP(), IPAddress(8, 8, 8, 8));
98+
// #endif
9899

99100
Serial.printf("connected!\r\n[WiFi]: IP-Address is %s\r\n", WiFi.localIP().toString().c_str());
100101
}

0 commit comments

Comments
 (0)