Monitor for central heating system (e.g. 2zones+hw) Supports up to 15 temp probes (DS18B20/DS18S20) 3 valve monitors Gas pulse meter recording Use stand-alone or with nodeEnergyServer See http://robdobson.com/2015/09/central-heating-monitor
Dependencies: EthernetInterfacePlusHostname NTPClient Onewire RdWebServer SDFileSystem-RTOS mbed-rtos mbed-src
Diff: PulsePin.h
- Revision:
- 5:5bccf48799d4
- Parent:
- 4:0d3a207680b0
--- a/PulsePin.h Mon Feb 02 16:24:30 2015 +0000 +++ b/PulsePin.h Tue Feb 17 21:33:39 2015 +0000 @@ -7,8 +7,10 @@ public: PulsePin(DigitalIn& pin, bool risingEdge, int pinStableTimeMs); bool Service(); - int GetLastCycleTimeMs(); - + int GetPulseRateMs(); + int GetPulseCount(); + void SetPulseCount(int pulseCount); + private: DigitalIn& _pin; Timer _pinTimer; @@ -18,6 +20,8 @@ int _waitForPinStabilisationMs; bool _detectRisingEdge; int _timeBetweenEdgesMs; + int _pulseCount; + int _pinTimerMinutes; };