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:
3:9f00be404f8f
Parent:
2:6bfef0839102
Child:
4:0d3a207680b0
--- a/main.cpp	Fri Nov 07 16:09:15 2014 +0000
+++ b/main.cpp	Fri Nov 07 20:28:48 2014 +0000
@@ -59,7 +59,7 @@
             {
                 gasCount++;
                 char outBuf[200];
-                sprintf(outBuf, "[{\"n\":\"gasCount\",\"v\":%d},{\"n\":\"gasInterPulse\",\"v\":%d,\"u\":\"ms\"}]", 
+                sprintf(outBuf, "{\"e\":[{\"n\":\"gasCount\",\"v\":%d},{\"n\":\"gasInterPulse\",\"v\":%d,\"u\":\"ms\"}]}", 
                                     gasCount, pulsePin.GetLastCycleTimeMs());
                 int bytesToSend = strlen(outBuf);
                 int rslt = sendSocket.sendTo(broadcast, outBuf, bytesToSend);