镜像来自
https://github.com/revspace/operame
已同步 2025-12-13 16:06:30 +00:00
bugfix: check if the user wants to send temperature and humidity via MQTT
This commit is contained in:
父節點
9ce786bc62
當前提交
b6c24d252a
共有 1 個文件被更改,包括 30 次插入 和 28 次删除
|
|
@ -610,6 +610,7 @@ void loop() {
|
||||||
serializeJson(doc, message);
|
serializeJson(doc, message);
|
||||||
retain(mqtt_topic, message);
|
retain(mqtt_topic, message);
|
||||||
|
|
||||||
|
if(mqtt_temp_hum_enabled) {
|
||||||
//temperature
|
//temperature
|
||||||
if(isnan(t)) {
|
if(isnan(t)) {
|
||||||
Serial.println("Failed to read from DHT sensor, so no MQTT publish");
|
Serial.println("Failed to read from DHT sensor, so no MQTT publish");
|
||||||
|
|
@ -641,6 +642,7 @@ void loop() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (rest_enabled) {
|
if (rest_enabled) {
|
||||||
while(wificlientsecure.available()){
|
while(wificlientsecure.available()){
|
||||||
|
|
|
||||||
載入中…
Add table
Reference in a new issue