]> mj.ucw.cz Git - home-hw.git/commitdiff
SSR MQTT: Changed timestamp attribute
authorMartin Mares <mj@ucw.cz>
Sun, 12 Aug 2018 10:15:52 +0000 (12:15 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 12 Aug 2018 10:15:52 +0000 (12:15 +0200)
ssr/host/burrow-ssrd.c

index 8f3ec0e8b58371ec62822483dd159193f7803780..da650ad0c4ebbd55373f13e7c1e0ae8f5780405b 100644 (file)
@@ -238,6 +238,6 @@ int main(int argc UNUSED, char **argv)
                msg(L_DEBUG, "Measured raw temperature %d", t);
 
                mqtt_publish("burrow/loft/temperature", "%.3f", t / 1000.);
-               mqtt_publish("burrow/loft/timestamp", "%llu", (unsigned long long) now);
+               mqtt_publish("burrow/loft/temperature_timestamp", "%llu", (unsigned long long) now);
        }
 }