HomeWaterLeaksDetection
LeakDetectionConfig.h
Go to the documentation of this file.
1
#ifndef LEAK_DETECTION_CONFIG_H
2
#define LEAK_DETECTION_CONFIG_H
3
4
#include "
DateTime.h
"
5
#include "
PulseCounter.h
"
6
7
//========LeakDetectionConfig_t structure===============
8
17
struct
LeakDetectionConfig_t
{
18
time_t
limitResetTime
;
19
time_t
limitActionTime
;
20
int
limitPulseAction
;
21
int
bypassPin
;
22
30
bool
operator!=
(
const
LeakDetectionConfig_t
&other)
const
{
31
return
limitResetTime
!= other.
limitResetTime
||
32
limitActionTime
!= other.
limitActionTime
||
33
limitPulseAction
!= other.
limitPulseAction
||
34
bypassPin
!= other.
bypassPin
;
35
}
36
};
37
38
#endif
DateTime.h
LeakDetectionConfig_t
Definition:
LeakDetectionConfig.h:17
LeakDetectionConfig_t::limitResetTime
time_t limitResetTime
limit reset time e.g. 5 mins, 24h, ....
Definition:
LeakDetectionConfig.h:18
LeakDetectionConfig_t::limitPulseAction
int limitPulseAction
limit action in pulses
Definition:
LeakDetectionConfig.h:20
LeakDetectionConfig_t::operator!=
bool operator!=(const LeakDetectionConfig_t &other) const
Compares two settings.
Definition:
LeakDetectionConfig.h:30
LeakDetectionConfig_t::bypassPin
int bypassPin
number of the bypass pin
Definition:
LeakDetectionConfig.h:21
LeakDetectionConfig_t::limitActionTime
time_t limitActionTime
limit action time (leak has been detected)
Definition:
LeakDetectionConfig.h:19
time_t
unsigned long time_t
Referring to the data type unsigned long as time_t.
Definition:
DateTime.h:20
PulseCounter.h
include
LeakDetectionConfig.h
Generated on Thu May 13 2021 08:42:38 for HomeWaterLeaksDetection by
1.8.18