X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/2094fb89e05795f5daee526dc4617a169faba201..76cb925db11bf98d7fc7030401f05f68043cc89a:/bin/weathermon diff --git a/bin/weathermon b/bin/weathermon index d16f871..804ba25 100755 --- 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