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: GasUseCounter.h
- Revision:
- 19:0367cb46d003
- Parent:
- 5:5bccf48799d4
- Child:
- 20:7933076df5af
diff -r d419ccebc666 -r 0367cb46d003 GasUseCounter.h --- a/GasUseCounter.h Mon Sep 28 11:16:46 2015 +0000 +++ b/GasUseCounter.h Mon Oct 05 14:05:33 2015 +0000 @@ -12,10 +12,11 @@ { public: // Constructor - GasUseCounter(const char* gasUseFilename, DigitalIn& gasPulsePin, RawSerial &pc) : + GasUseCounter(const char* gasUseFilename1, const char* gasUseFilename2, DigitalIn& gasPulsePin, RawSerial &pc) : _gasPulsePin(gasPulsePin), _pc(pc) { - _gasUseFilename = gasUseFilename; + _gasUseFilename1 = gasUseFilename1; + _gasUseFilename2 = gasUseFilename2; _lastWrittenGasCount = 0; _pulseDetector = new PulsePin(_gasPulsePin, false, 200); } @@ -54,7 +55,8 @@ private: // Gas use filename for non-volatile - const char* _gasUseFilename; + const char* _gasUseFilename1; + const char* _gasUseFilename2; int _curGasCount; int _lastWrittenGasCount; char _gasCountStr [MAX_GAS_COUNT_STR_LEN];