interval instead of timeout
This commit is contained in:
parent
e49a0ddbab
commit
a833a3b6a4
|
@ -56,12 +56,9 @@
|
||||||
sendData({"timeStamp": Math.round(new Date().getTime()/1000), "updates": changedDevs});
|
sendData({"timeStamp": Math.round(new Date().getTime()/1000), "updates": changedDevs});
|
||||||
}
|
}
|
||||||
console.log("set new interval for sending");
|
console.log("set new interval for sending");
|
||||||
window.setTimeout(senden, 100);
|
|
||||||
};
|
|
||||||
|
|
||||||
// vielleicht baut man lieber was mit setTimeout und setzt das jeweils neu wenn man daten ändert
|
};
|
||||||
// das könnte den Browser entlasten, sofern den das 200ms Aufrufen überhaupt stört :D
|
window.setInterval(senden, 100);
|
||||||
senden();
|
|
||||||
|
|
||||||
$("#slider1").slider({ min: 0, max: 100, slide: function(event, ui) {
|
$("#slider1").slider({ min: 0, max: 100, slide: function(event, ui) {
|
||||||
volumes.room1 = ui.value;
|
volumes.room1 = ui.value;
|
||||||
|
|
Loading…
Reference in New Issue