This commit is contained in:
newtbot
2024-01-14 23:31:00 +08:00
parent d9e028d300
commit 935709c2eb
101 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,7 @@ client.on("connect", () => {
client.on("end", () => {
console.log("Disconnected from MQTT broker");
client.reconnect = true;
client.reconnect();
});
client.on("error", (err) => {
@ -32,3 +32,7 @@ setInterval(publishData, 900000);
//setInterval(publishData, 60000);