mirror of
https://github.com/revspace/operame
synced 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:
parent
9ce786bc62
commit
b6c24d252a
1 changed files with 30 additions and 28 deletions
|
|
@ -610,6 +610,7 @@ void loop() {
|
|||
serializeJson(doc, message);
|
||||
retain(mqtt_topic, message);
|
||||
|
||||
if(mqtt_temp_hum_enabled) {
|
||||
//temperature
|
||||
if(isnan(t)) {
|
||||
Serial.println("Failed to read from DHT sensor, so no MQTT publish");
|
||||
|
|
@ -641,6 +642,7 @@ void loop() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (rest_enabled) {
|
||||
while(wificlientsecure.available()){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue