Browse Source

🔨 Change measurement interval

main
Haris Razis 4 years ago
parent
commit
b93a4272bd
No known key found for this signature in database GPG Key ID: 86A4D290ED03FAB4
  1. 4
      client/src/class/ClientService.ts

4
client/src/class/ClientService.ts

@ -13,12 +13,12 @@ export class ClientService {
tempService(): void {
setInterval(() => {
this.clientSocket.sendTemp(this.sensor.takeMeasure, 'temperature');
}, 3000);
}, 1 * 60000);
}
tempTestService(): void {
setInterval(() => {
this.clientSocket.sendTemp(this.sensor.takeTestMeasure, 'temperature');
}, 3000);
}, 1 * 60000);
}
}

Loading…
Cancel
Save