1
0
mirror of https://github.com/revspace/operame synced 2025-02-23 20:06:58 +00:00

Merge pull request #7 from controlco2/bugfix/publish-temp-and-hum-to-temp-and-hum-topics

bugfix: publish temperature and humidity to their own topics
This commit is contained in:
ControlCO2.space 2021-07-26 15:54:04 +02:00 committed by GitHub
commit 887650110f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -623,7 +623,7 @@ void loop() {
doc["value"] = t;
doc["unit"] = "C";
serializeJson(doc, message);
retain(mqtt_topic, message);
retain(mqtt_topic_temperature, message);
}
//humidity
@ -638,7 +638,7 @@ void loop() {
doc["value"] = h;
doc["unit"] = "%R.H.";
serializeJson(doc, message);
retain(mqtt_topic, message);
retain(mqtt_topic_humidity, message);
}
}
}