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

Revision:
20:7933076df5af
Parent:
16:89778849e9f7
--- a/RdDS18B20.h	Mon Oct 05 14:05:33 2015 +0000
+++ b/RdDS18B20.h	Tue Oct 13 18:35:20 2015 +0000
@@ -7,14 +7,15 @@
 
 #include "mbed.h"
 #include "Onewire.h"
+#include "Logger.h"
 
 class DS18B20
 {
 public:
-    DS18B20(PinName mbedPin);
+    DS18B20(PinName mbedPin, Logger &logger);
     void ReqConvert();
     double ReadTemperature(int addrIdx);
-    void DebugPrintAddress(int addrIdx);
+    void DebugGetAddress(int addrIdx, char* buf);
     int SearchToGetAddresses();
     int GetNumAddresses()
     {
@@ -36,6 +37,9 @@
     time_t _timeOfReadingTable[MAX_BUS_DEVICES];
     Onewire _oneWire;
     char _addrStr[ONEWIRE_ADDR_STRLEN];
+    Logger &_logger;
+    char* GetChipId(int val);
+
 };
 
 #endif
\ No newline at end of file