HomeWaterLeaksDetection
|
#include <LeakDetectionConfig.h>
Public Member Functions | |
bool | operator!= (const LeakDetectionConfig_t &other) const |
Compares two settings. More... | |
Public Attributes | |
time_t | limitResetTime |
limit reset time e.g. 5 mins, 24h, .... More... | |
time_t | limitActionTime |
limit action time (leak has been detected) More... | |
int | limitPulseAction |
limit action in pulses More... | |
int | bypassPin |
number of the bypass pin More... | |
This structure represents settings on a water leak detection algorithm. This template is used as both the normal and the alarm config. Not all the algorithms have to use all the parameters. For instance, the high-water leak detection algorithm doesn't use 'limitActionTime'.
Definition at line 17 of file LeakDetectionConfig.h.
|
inline |
Compares two settings.
This method is used for settings comparison (so the same settings are not applied again, for example)
other | the other settings we compare these settings to |
Definition at line 30 of file LeakDetectionConfig.h.
References bypassPin, limitActionTime, limitPulseAction, and limitResetTime.
int LeakDetectionConfig_t::bypassPin |
number of the bypass pin
Definition at line 21 of file LeakDetectionConfig.h.
Referenced by operator!=(), LowLeakDetection::update(), and HighLeakDetection::update().
time_t LeakDetectionConfig_t::limitActionTime |
limit action time (leak has been detected)
Definition at line 19 of file LeakDetectionConfig.h.
Referenced by LeaksController::changeSettings(), LowLeakDetection::getFormatOfSettingsToSave(), LowLeakDetection::getPercentLeakDetected(), operator!=(), and LowLeakDetection::testActiveLeak().
int LeakDetectionConfig_t::limitPulseAction |
limit action in pulses
Definition at line 20 of file LeakDetectionConfig.h.
Referenced by LeaksController::changeSettings(), HighLeakDetection::getFormatOfSettingsToSave(), HighLeakDetection::getPercentLeakDetected(), operator!=(), HighLeakDetection::testActiveLeak(), and TotalLeakDetection::testActiveLeak().
time_t LeakDetectionConfig_t::limitResetTime |
limit reset time e.g. 5 mins, 24h, ....
Definition at line 18 of file LeakDetectionConfig.h.
Referenced by LeaksController::changeSettings(), LowLeakDetection::getFormatOfSettingsToSave(), HighLeakDetection::getFormatOfSettingsToSave(), TotalLeakDetection::getPercentLeakDetectionReset(), LowLeakDetection::getPercentLeakDetectionReset(), HighLeakDetection::getPercentLeakDetectionReset(), operator!=(), TotalLeakDetection::testResetLeak(), LowLeakDetection::testResetLeak(), and HighLeakDetection::testResetLeak().