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 filter with services issue #91

Open
Wicz3k opened this issue Oct 3, 2024 · 7 comments
Open

Windows filter with services issue #91

Wicz3k opened this issue Oct 3, 2024 · 7 comments

Comments

@Wicz3k
Copy link

Wicz3k commented Oct 3, 2024

On ios and android if i set list of services to scan ScanFilter like that:

List<String> allScanningServices = [
        "0000fae5-0000-1000-8000-00805f9b34fb",
        "6e400001-b5a3-f393-e0a9-e50e24dcca9e",
      ];

UniversalBle.startScan(
  scanFilter: ScanFilter(
    withServices: allScanningServices 
  ),
)

Application accept all devices which got any of listed services. But on windows it get device only if there is one service in list, and device got this service (i do not tried when device has all services from list). I need to find devices with any of these services, but olnly way on windows is to scan without this filter. This issue is in library since I remember.

@fotiDim
Copy link
Contributor

fotiDim commented Oct 3, 2024

@Wicz3k please try with version 0.13 which was released earlier today.

@Wicz3k
Copy link
Author

Wicz3k commented Oct 3, 2024

@fotiDim I tried also on new version and nothing changed.
Last update make me to reviev my code and I found that I do not use this filter on windows, cause this problem. I filter device after detect them.

@fotiDim
Copy link
Contributor

fotiDim commented Oct 7, 2024

@Wicz3k is that resolved then? Can this be closed?

@Wicz3k
Copy link
Author

Wicz3k commented Oct 7, 2024

@fotiDim No, nothing changed. I still need workaround to detect my devices on windows. Workaround is to not use filter on windows and filter devices after detect them.

@rohitsangwan01
Copy link
Contributor

@Wicz3k are you only using service filter ?
If yes, try to add one more filter like Name filter, This will help us to narrow down the issue
After applying one more filter, Left us know if its working as expected or not

@Wicz3k
Copy link
Author

Wicz3k commented Oct 7, 2024

@rohitsangwan01 If I add any name prefix which does not exist near me it works as expected.

@rohitsangwan01
Copy link
Contributor

@Wicz3k Thank you for your cooperation. We'll resolve this issue in the next update. In the meantime, you can use a workaround by adding a random name prefix filter.

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

No branches or pull requests

3 participants