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 
21  int bypassPin;
22 
30  bool operator!=(const LeakDetectionConfig_t &other) const {
31  return limitResetTime != other.limitResetTime ||
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