Go to the documentation of this file. 1 #ifndef UNTITLED_CONSUMPTION_COUNTER_H
2 #define UNTITLED_CONSUMPTION_COUNTER_H
PulseCounter * pulseCounter
instance of PulseCounter (input [l])
@ MONTH
monthly water consumption
Type
Type of the monitoring period.
int getConsumptionCount() const
Returns the current number of pulses detected so far within the monitoring period.
Type type
type of the monitoring period
RTCDateTime initialDateTime
instance of RTCDateTime (real-time module)
void update()
Updates the variables.
@ WEEK
weekly water consumption
Consumption(PulseCounter *pulseCounter, Type type)
Constructor of the class.
int count
number of pulses detected within the monitoring period
@ DAY
daily water consumption