optimization

This commit is contained in:
icanos 2020-01-20 21:32:46 +00:00
parent dc6faaf07e
commit 85a194b794
2 changed files with 6 additions and 6 deletions

View file

@ -29,8 +29,8 @@ async function main() {
// init the BLE interface
const plejd = new PlejdService(cryptoKey, true);
plejd.on('connectFailed', () => {
console.log('plejd-ble: were unable to connect, will retry connection in 10 seconds.');
setTimeout(() => {
console.log('plejd-ble: were unable to connect, will retry connection in 10 seconds.');
plejd.init();
}, 10000);
});