optimization
This commit is contained in:
parent
dc6faaf07e
commit
85a194b794
2 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue