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

Committer:
Bobty
Date:
Sun Feb 22 22:08:37 2015 +0000
Revision:
12:a52996515063
Child:
20:7933076df5af
Watchdog implemented and working; Improved logging of events and data

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Bobty 12:a52996515063 1 // Log to SD
Bobty 12:a52996515063 2 // Rob Dobson, 2015
Bobty 12:a52996515063 3
Bobty 12:a52996515063 4 #ifndef __LOGGER__H
Bobty 12:a52996515063 5 #define __LOGGER__H
Bobty 12:a52996515063 6 #include "mbed.h"
Bobty 12:a52996515063 7 #include <stdarg.h>
Bobty 12:a52996515063 8
Bobty 12:a52996515063 9 class Logger
Bobty 12:a52996515063 10 {
Bobty 12:a52996515063 11 public:
Bobty 12:a52996515063 12 Logger(const char* eventLogFileName, const char* dataLogFileBase);
Bobty 12:a52996515063 13 void LogEvent(const char* format, ...);
Bobty 12:a52996515063 14 void LogData(const char* format, ...);
Bobty 12:a52996515063 15
Bobty 12:a52996515063 16 private:
Bobty 12:a52996515063 17 const char* _eventLogFileName;
Bobty 12:a52996515063 18 const char* _dataLogFileBase;
Bobty 12:a52996515063 19 };
Bobty 12:a52996515063 20
Bobty 12:a52996515063 21
Bobty 12:a52996515063 22 #endif