2023-06-18

This commit is contained in:
hans-jurgen 2023-06-18 21:22:17 +02:00
parent 824dc39de9
commit 4e9c46f4b3
2 changed files with 8 additions and 8 deletions

View File

@ -51,11 +51,11 @@ build_flags = ${env.build_flags}
build_flags = ${env.build_flags}
-DDEBUG=1
-DGRENZWERT=2.80
-DSTASSID=\"Westside\"
-DSTAPSK=\"BorisundEva\"
-DSTASSID=\"FRITZ!Box7362SL\"
-DSTAPSK=\"BorisundEva2007\"
-DGATEWAY=\"192.168.2.1\"
-DDNS=\"192.168.2.1\"
-DMYIP=\"192.168.2.45\"
-DMYIP=\"192.168.2.40\"
-DSUBNET=\"255.255.255.0\"
-DSECONDARDNS=\"8.8.8.8\"
-Dmqtt_server=\"hjkmqtt.dedyn.io\"

View File

@ -299,16 +299,16 @@ void reconnect() {
if (client.connect(clientName)) {
/* MQTTStatus.setPic(3); */
Serial.println("connected");
/* client.subscribe(topic_Co2);
//client.subscribe(topic_Co2);
//client.subscribe(topic_Covid);Ja
client.subscribe(topic_Wetter);
client.subscribe(topic_Pressure);
client.subscribe(topic_Innen);
client.subscribe(topic_Luftfeuchtigkeit);
client.subscribe(topic_Akku);
client.subscribe(topic_Helligkeit); */
client.subscribe("hjk/devices/WETTERSTATION/telemetry/#");
client.subscribe("hjk/devices/MESSUNITTEMPBORIS/telemetry/#");
client.subscribe(topic_Helligkeit);
//client.subscribe("hjk/devices/WETTERSTATIONBORIS/telemetry/#");
//client.subscribe("hjk/devices/MESSUNITTEMPBORIS/telemetry/#");
} else {
Serial.print("failed, rc=");
Serial.print(client.state());
@ -427,7 +427,7 @@ void ZeigeWetter(double Wetter1, int yPos = 2, int xPos = 1)
dtostrf(Wetter1, 4, 1, szWetter);
display.setCursor(xPos, yPos);
display.fillRect(xPos, yPos-2, 64-xPos, 8+2, (myBLACK));
display.setTextColor(myTEMP);
display.setTextColor(myBLUE);
display.print(szWetter);
// Erzeuge Grad Zeichen ......
display.setCursor(xPos+24, yPos-5);