2025-05-0500
DNS geändert
This commit is contained in:
		
							
								
								
									
										12
									
								
								src/main.cpp
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user