mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
https://github.com/emsesp/EMS-ESP32/discussions/2550 - publish sensor when interval is set to 0(auto)
This commit is contained in:
@@ -187,7 +187,7 @@ class AnalogSensor {
|
|||||||
std::vector<Sensor> sensors_; // our list of sensors
|
std::vector<Sensor> sensors_; // our list of sensors
|
||||||
|
|
||||||
bool analog_enabled_;
|
bool analog_enabled_;
|
||||||
bool changed_ = false;
|
bool changed_ = true; // this will force a publish of all sensors when initialising
|
||||||
uint32_t sensorfails_ = 0;
|
uint32_t sensorfails_ = 0;
|
||||||
uint32_t sensorreads_ = 0;
|
uint32_t sensorreads_ = 0;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user