decrease autoupdate interval

This commit is contained in:
casperlamboo 2018-01-29 11:04:08 +01:00
parent cdb12f4d78
commit 21bd6c4714

View File

@ -26,7 +26,7 @@ class WifiBoxControl extends React.Component {
const box = new Doodle3DBox(ip);
window.d3dbox = box;
box.addEventListener('update', ({ state }) => this.setState({ status: state }));
box.setAutoUpdate(true, 1000);
box.setAutoUpdate(true, 5000);
this.setState({ box });