2025-05-2400
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@ -106,21 +106,21 @@ u_int16_t StartderAbdunklung = 20;
|
|||||||
u_int16_t EndederAbdunklung = 7;
|
u_int16_t EndederAbdunklung = 7;
|
||||||
|
|
||||||
// Wifi
|
// Wifi
|
||||||
/* char ssid[] = "MagentaWLAN-RGDO"; // your network SSID (name)
|
char ssid[] = "MagentaWLAN-RGDO"; // your network SSID (name)
|
||||||
char pass[] = "93329248424922704583"; // your network password
|
char pass[] = "93329248424922704583"; // your network password
|
||||||
IPAddress ip( 192, 168, 127, 52);
|
IPAddress ip( 192, 168, 127, 52);
|
||||||
IPAddress gateway( 192, 168, 127, 1 );
|
IPAddress gateway( 192, 168, 127, 1 );
|
||||||
IPAddress subnet( 255, 255, 255, 0 );
|
IPAddress subnet( 255, 255, 255, 0 );
|
||||||
IPAddress dns1(192, 168, 127, 1); // DNS-Server 1
|
IPAddress dns1(192, 168, 127, 1); // DNS-Server 1
|
||||||
IPAddress dns2(192, 168, 127, 1); // DNS-Server 2 */
|
IPAddress dns2(192, 168, 127, 1); // DNS-Server 2
|
||||||
|
|
||||||
char ssid[] = "EasyBox-838169"; // your network SSID (name)
|
/* char ssid[] = "EasyBox-838169"; // your network SSID (name)
|
||||||
char pass[] = "RcZmua6Xv4R4V5Kf"; // your network password
|
char pass[] = "RcZmua6Xv4R4V5Kf"; // your network password
|
||||||
IPAddress ip( 192, 168, 2, 80);
|
IPAddress ip( 192, 168, 2, 80);
|
||||||
IPAddress gateway( 192, 168, 2, 1 );
|
IPAddress gateway( 192, 168, 2, 1 );
|
||||||
IPAddress subnet( 255, 255, 255, 0 );
|
IPAddress subnet( 255, 255, 255, 0 );
|
||||||
IPAddress dns1(192, 168, 2, 1); // DNS-Server 1
|
IPAddress dns1(192, 168, 2, 1); // DNS-Server 1
|
||||||
IPAddress dns2(192, 168, 2, 1); // DNS-Server 2
|
IPAddress dns2(192, 168, 2, 1); // DNS-Server 2 */
|
||||||
String hostname = "DISPLAY";
|
String hostname = "DISPLAY";
|
||||||
int status = WL_IDLE_STATUS;
|
int status = WL_IDLE_STATUS;
|
||||||
const char* NTP_SERVER = "de.pool.ntp.org"; // Vodafone ???? (de.pool.ntp.arcor-ip.net)
|
const char* NTP_SERVER = "de.pool.ntp.org"; // Vodafone ???? (de.pool.ntp.arcor-ip.net)
|
||||||
@ -926,7 +926,7 @@ static void setup_wifi() {
|
|||||||
ESP.restart();
|
ESP.restart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Serial.println(" WiFi connected");
|
//Serial.println(" WiFi connected");
|
||||||
client.setServer(mqtt_server, mqtt_port);
|
client.setServer(mqtt_server, mqtt_port);
|
||||||
client.setCallback(callback);
|
client.setCallback(callback);
|
||||||
Serial.print("IP address: \t");
|
Serial.print("IP address: \t");
|
||||||
|
Reference in New Issue
Block a user