From 4dbff9156d200a485d2b1bfde4f5190264b42277 Mon Sep 17 00:00:00 2001 From: Pieter De Mil Date: Mon, 26 Jul 2021 15:51:11 +0200 Subject: [PATCH] bugfix: publish temperature and humidity to their own topics --- operame.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operame.ino b/operame.ino index 7d7969d..de8c712 100644 --- a/operame.ino +++ b/operame.ino @@ -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); } } }