X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/c58ad4fb6f2c4c350a6aae01b100ebb4564ad8e9..d5653b977ce2b9d0ef6e6c07b3a9b64c1462e601:/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