Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Device lost Link after short time #7

Open
testpaul999 opened this issue Apr 23, 2019 · 3 comments
Open

Device lost Link after short time #7

testpaul999 opened this issue Apr 23, 2019 · 3 comments

Comments

@testpaul999
Copy link

No description provided.

@testpaul999
Copy link
Author

Hi, I have one iTag who will use for my presence at one room.
The iTag is shown as "tagged" for a short time then it will appear.
come's back appear and so one.
but I don't move the tag at this time.
so what I need to have is if the iTag is near to the homebridge it must be tagged and only it is out of range it will appear after the "grace period"

so please can you do some changes pls?
regards
Jens

@testpaul999
Copy link
Author

I think we need a poll timer or so what. :-)

@testpaul999
Copy link
Author

testpaul999 commented Apr 25, 2019

Hi, fix the problem at this way.
this.startRescanTimer();
}

startRescanTimer() {
if (this.rescanTimeout) {
clearTimeout(this.rescanTimeout);
}

this.rescanTimeout = setTimeout(() => {
  this.debug('Restart scanning');
  noble.stopScanning();
  noble.startScanning([], false);
}, 3 * 1000);

}
Change the Timer form 60 to 3 and install manually.
It would be nice if we can change this timer per variable, but how can i define and use?

thx

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant