From 1b865b0218dbd922e8eb453b1a923a225d552aff Mon Sep 17 00:00:00 2001 From: hans-jurgen Date: Thu, 5 Jun 2025 00:33:25 +0200 Subject: [PATCH] =?UTF-8?q?2025-05-0500=20DNS=20ge=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6cd451a..3dae73f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -110,14 +110,16 @@ char pass[] = "93329248424922704583"; // your network password IPAddress ip( 192, 168, 127, 52); IPAddress gateway( 192, 168, 127, 1 ); IPAddress subnet( 255, 255, 255, 0 ); -IPAddress dns(192, 168, 127, 1); // DNS-Server */ +IPAddress dns1(192, 168, 127, 1); // DNS-Server 1 +IPAddress dns2(192, 168, 127, 1); // DNS-Server 2 */ -char ssid[] = "Vodafone-3EAC"; // your network SSID (name) -char pass[] = "K7arbc4gGFC6tbY3"; // your network password +char ssid[] = "Vodafone-3EAC"; // your network SSID (name) +char pass[] = "K7arbc4gGFC6tbY3"; // your network password IPAddress ip( 192, 168, 0, 52); IPAddress gateway( 192, 0, 127, 1 ); IPAddress subnet( 255, 255, 255, 0 ); -IPAddress dns(192, 168, 0, 1); // DNS-Server +IPAddress dns1(192, 168, 0, 1); // DNS-Server 1 +IPAddress dns2(192, 168, 0, 1); // DNS-Server 2 String hostname = "DISPLAY"; int status = WL_IDLE_STATUS; const char* NTP_SERVER = "de.pool.ntp.org"; @@ -910,7 +912,7 @@ static void setup_wifi() { /* WiFi.persistent( false ); WiFi.setHostname(hostname.c_str()); //define hostname WiFi.mode( WIFI_STA ); */ - //WiFi.config( ip, gateway, subnet, dns); + WiFi.config( ip, gateway, subnet, dns1, dns2); WiFi.begin(ssid, pass);