镜像来自
https://github.com/revspace/operame
已同步 2025-12-13 16:06:30 +00:00
bugfix: publish temperature and humidity to their own topics
This commit is contained in:
父節點
ca29d59c08
當前提交
4dbff9156d
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
載入中…
Add table
Reference in a new issue