projects
/
weathermon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Все-таки переподключение к брокеру лучше выполнять вручную...
[weathermon.git]
/
bin
/
weathermon
diff --git
a/bin/weathermon
b/bin/weathermon
index d16f871c18671c0d0e3bcb8e573889463132cdaf..804ba255a87eef42963134328191f2b52502aea5 100755
(executable)
--- a/
bin/weathermon
+++ b/
bin/weathermon
@@
-186,6
+186,9
@@
function processJson(str)
return '{'..name..'}'
end
end)
+ if not mqtt_client:socket() then
+ mqtt_client:reconnect()
+ end
mqtt_client:publish(mqtt_path,v)
mqtt_client:loop()
end