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

requestDevice()'s services filter cannot found any device #561

Open
nex314 opened this issue Sep 15, 2021 · 3 comments
Open

requestDevice()'s services filter cannot found any device #561

nex314 opened this issue Sep 15, 2021 · 3 comments

Comments

@nex314
Copy link

nex314 commented Sep 15, 2021

I want to use services filter to find my device, but it cannot found any device.
I also test battery_service on https://googlechrome.github.io/samples/web-bluetooth/device-info.html, still cannot found any device.
but prefix name filter can work.
How can I do to let services filter work?
thanks.

@reillyeon
Copy link
Contributor

reillyeon commented Sep 15, 2021

The services and manufacturer data filters require the device to advertise that data. If you visit about://bluetooth-internals and start a scan it will show the services and manufacturer data that is being received from each device.

@nex314
Copy link
Author

nex314 commented Sep 17, 2021

Thanks for your kindly replied.
I found that the services filter only can filter service which type is 0x03 but cannot filter out service which type is 0x16?
How can I do to filter out service which type is 0x16?
thanks.

@reillyeon
Copy link
Contributor

I am not sure what you mean by "service type 0x03" and "service type 0x16". Do you mean advertising data types, where 0x03 is "complete list of service UUIDs" and 0x16 is "service data"?

Is the service you are trying to filter on listed in about://bluetooth-internals in the "Services" column when you scan for devices?

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

2 participants