We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69b780d commit e7e01ffCopy full SHA for e7e01ff
1 file changed
main.js
@@ -33,11 +33,6 @@ class SofarCloud extends utils.Adapter {
33
const storeJson = !!this.config.storeJson;
34
const storeDir = this.config.storeDir || "";
35
36
- // Random delay 0-58s
37
- const delay = Math.floor(Math.random() * 58);
38
- this.log.debug(`Data retrieval will start in ${delay} seconds`);
39
- await this.sleep(delay * 1000);
40
-
41
let client = null;
42
if (mqtt_active) {
43
if (!broker_address || broker_address === "0.0.0.0") {
@@ -75,7 +70,6 @@ class SofarCloud extends utils.Adapter {
75
70
76
71
if (mqtt_active && client) {
77
72
await this.publishSofarData(client, daten);
78
- await this.sleep(500);
79
73
client.end();
80
74
}
81
0 commit comments