2025-08-1800
This commit is contained in:
		| @@ -40,8 +40,9 @@ build_flags = ${env.build_flags} | ||||
|     -Dmqtt_server=\"hjkmqtt.dedyn.io\" | ||||
|     -Dmqtt_port=61883 | ||||
|     -DINNEN=\"hjk/devices/TEMPWOHNZIM/telemetry/temperature\" | ||||
|     -DINNENHUMITY=\"hjk/devices/TEMPWOHNZIM/telemetry/humity\" | ||||
|     ;-DFLUR=\"hjk/devices/TEMPFLUR/telemetry/temperature\" | ||||
|     ;-DCO2=\"hjk/devices/257923/telemetry/co2\" | ||||
|     -DCO2=\"hjk/devices/257923/telemetry/co2\" | ||||
|     -DAKKU=\"hjk/devices/WETTERSTATION/telemetry/battery\" | ||||
|     -DWETTER=\"hjk/devices/WETTERSTATION/telemetry/temperature_Htu_21\" | ||||
|     -DLUFTDRUCK=\"hjk/devices/WETTERSTATION/telemetry/pressure\" | ||||
| @@ -82,6 +83,7 @@ build_flags = ${env.build_flags} | ||||
|     -Dmqtt_server=\"192.168.127.251\" | ||||
|     -Dmqtt_port=1883 | ||||
|     -DINNEN=\"hjk/devices/TEMPWOHNZIM/telemetry/temperature\" | ||||
|     -DINNENHUMITY=\"hjk/devices/TEMPWOHNZIM/telemetry/humity\" | ||||
|     -DFLUR=\"hjk/devices/TEMPFLUR/telemetry/temperature\" | ||||
|     -DCO2=\"hjk/devices/257923/telemetry/co2\" | ||||
|     -DAKKU=\"hjk/devices/WETTERSTATION/telemetry/battery\" | ||||
|   | ||||
							
								
								
									
										11
									
								
								src/main.cpp
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/main.cpp
									
									
									
									
									
								
							| @@ -145,6 +145,9 @@ char msg[20]; | ||||
| char clientName[30]; | ||||
|  | ||||
| const char* topic_Innen = INNEN; | ||||
| #ifdef INNENHUMITY | ||||
| const char* topic_Innen_humity = INNENHUMITY; | ||||
| #endif | ||||
| const char* topic_Akku = AKKU; | ||||
| #ifdef CO2 | ||||
| const char* topic_Co2 = CO2; | ||||
| @@ -283,6 +286,14 @@ void callback(char* topic1, byte* payload, unsigned int length) { | ||||
|     Serial.println(" °C"); | ||||
|     TempWohn = atof(msg); | ||||
|   } | ||||
|   #ifdef INNENHUMITY | ||||
|   if(strcmp(topic1, topic_Innen_humity)== 0){  | ||||
|     Serial.print("Luftfeuchtigkeit Innen: "); | ||||
|     Serial.print(msg); | ||||
|     Serial.println(" %"); | ||||
|     TempWohn = atof(msg); | ||||
|   } | ||||
|   #endif | ||||
|   #ifdef FLUR | ||||
|   if(strcmp(topic1, topic_Flur)== 0){  | ||||
|     Serial.print("Temperatur Flur: "); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user