Skip to content

Commit e7e01ff

Browse files
committed
sleep removed
1 parent 69b780d commit e7e01ff

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

main.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ class SofarCloud extends utils.Adapter {
3333
const storeJson = !!this.config.storeJson;
3434
const storeDir = this.config.storeDir || "";
3535

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-
4136
let client = null;
4237
if (mqtt_active) {
4338
if (!broker_address || broker_address === "0.0.0.0") {
@@ -75,7 +70,6 @@ class SofarCloud extends utils.Adapter {
7570

7671
if (mqtt_active && client) {
7772
await this.publishSofarData(client, daten);
78-
await this.sleep(500);
7973
client.end();
8074
}
8175

0 commit comments

Comments
 (0)