Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows showing devices no longer advertising #405

Open
FalsePsyche opened this issue Oct 29, 2024 · 0 comments
Open

Windows showing devices no longer advertising #405

FalsePsyche opened this issue Oct 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@FalsePsyche
Copy link

Hi all, we use btleplug in a tauri app, specifically for desktop. This crate works really well and we are very happy with it.

There is one issue we are coming across that I am hoping to get more clarification on. When scanning, specifically on Windows (have not tested this on Linux or Mac), a device will be shown even after the device is completely powered off and no longer advertising.
We call start_scan() and then call peripherals() periodically (every second or so). This will show devices that are no longer advertising. But once we call stop_scan(), then start_scan() and peripherals() again, the device (that is completely off) will be gone. I feel like this question is a dumb one, but is there a way to filter out devices that are no longer advertising? Based on what I've read in this repo, this is a complicated subject and likely something that Windows is doing that we won't be able to control.

I appreciate all the hard work!

@FalsePsyche FalsePsyche added the bug Something isn't working label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant