mirror of
				https://github.com/revspace/operame
				synced 2025-10-30 11:05:37 +00:00 
			
		
		
		
	Don't publish invalid sensor readings to MQTT
This commit is contained in:
		
							parent
							
								
									e5167278ee
								
							
						
					
					
						commit
						5687e04440
					
				| @ -363,6 +363,7 @@ void loop() { | ||||
|         mqtt_interval, | ||||
|         [] { | ||||
|             if (!mqtt_enabled) return; | ||||
|             if (co2 <= 0) return; | ||||
|             connect_mqtt(); | ||||
|             String message = mqtt_template; | ||||
|             message.replace("{}", String(co2)); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user