From a0d7112025e07e85a9e91c940efe6f8512226a2e Mon Sep 17 00:00:00 2001 From: Moe Date: Sun, 24 Jul 2022 07:36:15 -0700 Subject: [PATCH] make mqtt wait 10 seconds before reconnect --- libs/notifications/mqtt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/notifications/mqtt.js b/libs/notifications/mqtt.js index 986c8e8f..18f0e41b 100644 --- a/libs/notifications/mqtt.js +++ b/libs/notifications/mqtt.js @@ -32,7 +32,7 @@ module.exports = function(s,config,lang,getSnapshot){ username: username, password: password, clientId: `shinobi_${Math.random().toString(16).substr(2, 8)}`, - reconnectPeriod: 1000, // 10 seconds + reconnectPeriod: 10000, // 10 seconds }); client.on('reconnect', (e) => mqttUserLog(`MQTT Reconnected`)) client.on('disconnect', (e) => mqttUserLog(`MQTT Disconnected`))