From: Roman Bazalevsky <rvb@rvb.name>
Date: Mon, 24 Dec 2018 08:06:56 +0000 (+0300)
Subject: Исправлена ошибка с непредумышленным установлением статуса retained для сообщений.
X-Git-Url: https://git.rvb.name/weathermon.git/commitdiff_plain/82c945cbf3ea97175cd2fba31f8ba92b9aade8ba?hp=--cc
Исправлена ошибка с непредумышленным установлением статуса retained для сообщений.
---
82c945cbf3ea97175cd2fba31f8ba92b9aade8ba
diff --git a/bin/weathermon b/bin/weathermon
index 8da4696..ade5bfa 100755
--- a/bin/weathermon
+++ b/bin/weathermon
@@ -185,7 +185,7 @@ function processJson(str)
if not mqtt_client:socket() then
mqtt_client:reconnect()
end
- mqtt_client:publish(mqtt_path,v,0,0)
+ mqtt_client:publish(mqtt_path,v,0,false)
mqtt_client:loop()
end
end
@@ -248,7 +248,7 @@ function processLine(str)
return '{'..name..'}'
end
end)
- mqtt_client:publish(mqtt_path,v,0,0)
+ mqtt_client:publish(mqtt_path,v,0,false)
mqtt_client:loop()
end
end
@@ -289,7 +289,7 @@ function processLine(str)
return '{'..name..'}'
end
end)
- mqtt_client:publish(mqtt_path,msg_body,0,0)
+ mqtt_client:publish(mqtt_path,msg_body,0,false)
mqtt_client:loop()
end
if alarm_exec then