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:
2094fb8
)
Все-таки переподключение к брокеру лучше выполнять вручную...
author
Roman Bazalevsky
<rvb@rvb.name>
Thu, 29 Nov 2018 17:58:52 +0000
(20:58 +0300)
committer
Roman Bazalevsky
<rvb@rvb.name>
Thu, 29 Nov 2018 17:58:52 +0000
(20:58 +0300)
bin/weathermon
patch
|
blob
|
history
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