]> mj.ucw.cz Git - home-hw.git/blobdiff - bsb/daemon/burrow-bsbd.c
README
[home-hw.git] / bsb / daemon / burrow-bsbd.c
index 786e05879954721f7baadeb408f00e2bee6c537a..d855b4743af434a41df9a9acf6c031a0382ce8a1 100644 (file)
@@ -205,14 +205,15 @@ static void process_info(time_t t, byte *p, uint len)
                case 0x0500006b:
                        if (len >= 2) {
                                int err = get_u16_be(p);
-                               mqtt_publish("burrow/heating/error", "%04x", err);
+                               mqtt_publish("burrow/heating/error", "%d %lld", err, (long long) t);
                        }
                        break;
                case 0x0500006c:
                        if (len >= 7) {
-                               mqtt_publish("burrow/heating/clock", "%04d-%02d-%02d %02d:%02d",
+                               mqtt_publish("burrow/heating/clock", "%04d-%02d-%02dT%02d:%02d %lld",
                                        get_u16_be(p) + 1900, p[2], p[3],
-                                       p[5], p[6]);
+                                       p[5], p[6],
+                                       (long long) t);
                        }
                        break;
                case 0x05000219: