projects
/
weathermon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7580c60
)
Исправлена ошибка с непредумышленным установлением статуса retained для сообщений.
author
Roman Bazalevsky
<rvb@rvb.name>
Mon, 24 Dec 2018 08:06:56 +0000
(11:06 +0300)
committer
Roman Bazalevsky
<rvb@rvb.name>
Mon, 24 Dec 2018 08:06:56 +0000
(11:06 +0300)
bin/weathermon
patch
|
blob
|
history
diff --git
a/bin/weathermon
b/bin/weathermon
index 8da469650890303c2483c028df13c797f1104b7c..ade5bfaa3f4cd80a468daaea58cecd6b3e75558a 100755
(executable)
--- a/
bin/weathermon
+++ b/
bin/weathermon
@@
-185,7
+185,7
@@
function processJson(str)
if not mqtt_client:socket() then
mqtt_client:reconnect()
end
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
mqtt_client:loop()
end
end
@@
-248,7
+248,7
@@
function processLine(str)
return '{'..name..'}'
end
end)
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
mqtt_client:loop()
end
end
@@
-289,7
+289,7
@@
function processLine(str)
return '{'..name..'}'
end
end)
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
mqtt_client:loop()
end
if alarm_exec then