mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix #327, analogsensor sending multiple mqtt messages
This commit is contained in:
@@ -335,9 +335,8 @@ void AnalogSensor::publish_values(const bool force) {
|
|||||||
doc[sensor.name()] = sensor.value();
|
doc[sensor.name()] = sensor.value();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Mqtt::publish(F("analogsensor_data"), doc.as<JsonObject>());
|
|
||||||
}
|
}
|
||||||
|
Mqtt::publish(F("analogsensor_data"), doc.as<JsonObject>());
|
||||||
}
|
}
|
||||||
|
|
||||||
// called from emsesp.cpp, similar to the emsdevice->get_value_info
|
// called from emsesp.cpp, similar to the emsdevice->get_value_info
|
||||||
|
|||||||
Reference in New Issue
Block a user