2023-06-18
This commit is contained in:
parent
824dc39de9
commit
4e9c46f4b3
|
@ -51,11 +51,11 @@ build_flags = ${env.build_flags}
|
||||||
build_flags = ${env.build_flags}
|
build_flags = ${env.build_flags}
|
||||||
-DDEBUG=1
|
-DDEBUG=1
|
||||||
-DGRENZWERT=2.80
|
-DGRENZWERT=2.80
|
||||||
-DSTASSID=\"Westside\"
|
-DSTASSID=\"FRITZ!Box7362SL\"
|
||||||
-DSTAPSK=\"BorisundEva\"
|
-DSTAPSK=\"BorisundEva2007\"
|
||||||
-DGATEWAY=\"192.168.2.1\"
|
-DGATEWAY=\"192.168.2.1\"
|
||||||
-DDNS=\"192.168.2.1\"
|
-DDNS=\"192.168.2.1\"
|
||||||
-DMYIP=\"192.168.2.45\"
|
-DMYIP=\"192.168.2.40\"
|
||||||
-DSUBNET=\"255.255.255.0\"
|
-DSUBNET=\"255.255.255.0\"
|
||||||
-DSECONDARDNS=\"8.8.8.8\"
|
-DSECONDARDNS=\"8.8.8.8\"
|
||||||
-Dmqtt_server=\"hjkmqtt.dedyn.io\"
|
-Dmqtt_server=\"hjkmqtt.dedyn.io\"
|
||||||
|
|
10
src/main.cpp
10
src/main.cpp
|
@ -299,16 +299,16 @@ void reconnect() {
|
||||||
if (client.connect(clientName)) {
|
if (client.connect(clientName)) {
|
||||||
/* MQTTStatus.setPic(3); */
|
/* MQTTStatus.setPic(3); */
|
||||||
Serial.println("connected");
|
Serial.println("connected");
|
||||||
/* client.subscribe(topic_Co2);
|
//client.subscribe(topic_Co2);
|
||||||
//client.subscribe(topic_Covid);Ja
|
//client.subscribe(topic_Covid);Ja
|
||||||
client.subscribe(topic_Wetter);
|
client.subscribe(topic_Wetter);
|
||||||
client.subscribe(topic_Pressure);
|
client.subscribe(topic_Pressure);
|
||||||
client.subscribe(topic_Innen);
|
client.subscribe(topic_Innen);
|
||||||
client.subscribe(topic_Luftfeuchtigkeit);
|
client.subscribe(topic_Luftfeuchtigkeit);
|
||||||
client.subscribe(topic_Akku);
|
client.subscribe(topic_Akku);
|
||||||
client.subscribe(topic_Helligkeit); */
|
client.subscribe(topic_Helligkeit);
|
||||||
client.subscribe("hjk/devices/WETTERSTATION/telemetry/#");
|
//client.subscribe("hjk/devices/WETTERSTATIONBORIS/telemetry/#");
|
||||||
client.subscribe("hjk/devices/MESSUNITTEMPBORIS/telemetry/#");
|
//client.subscribe("hjk/devices/MESSUNITTEMPBORIS/telemetry/#");
|
||||||
} else {
|
} else {
|
||||||
Serial.print("failed, rc=");
|
Serial.print("failed, rc=");
|
||||||
Serial.print(client.state());
|
Serial.print(client.state());
|
||||||
|
@ -427,7 +427,7 @@ void ZeigeWetter(double Wetter1, int yPos = 2, int xPos = 1)
|
||||||
dtostrf(Wetter1, 4, 1, szWetter);
|
dtostrf(Wetter1, 4, 1, szWetter);
|
||||||
display.setCursor(xPos, yPos);
|
display.setCursor(xPos, yPos);
|
||||||
display.fillRect(xPos, yPos-2, 64-xPos, 8+2, (myBLACK));
|
display.fillRect(xPos, yPos-2, 64-xPos, 8+2, (myBLACK));
|
||||||
display.setTextColor(myTEMP);
|
display.setTextColor(myBLUE);
|
||||||
display.print(szWetter);
|
display.print(szWetter);
|
||||||
// Erzeuge Grad Zeichen ......
|
// Erzeuge Grad Zeichen ......
|
||||||
display.setCursor(xPos+24, yPos-5);
|
display.setCursor(xPos+24, yPos-5);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user