mirror of
https://github.com/revspace/operame
synced 2024-12-04 21:57:30 +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…
Reference in New Issue
Block a user