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

navigator.bluetooth.requestDevice filter by deviceId(MAC) #508

Closed
sbahmani opened this issue Jul 29, 2020 · 4 comments
Closed

navigator.bluetooth.requestDevice filter by deviceId(MAC) #508

sbahmani opened this issue Jul 29, 2020 · 4 comments

Comments

@sbahmani
Copy link

sbahmani commented Jul 29, 2020

I need to filter the popup selector with deviceId(MAC) because there are many devices with the same name existed and assigned a customized number to each one and persist deviceId with this number in the back-end database. The persisted deviceId that not changed for a specific device.
select between many devices with the same name and different deviceId is annoying.

I saw #417 but I need filter not direct connect.

@reillyeon
Copy link
Contributor

I'm going to continue to use #417 to track the request to filter based on device MAC address.

For your use case, does the newly added getDevices() method satisfy your requirements. You can search the list that is returned for a BluetoothDevice with an ID matching your backend database.

See this guide for now to try out this experimental feature in Chrome.

@sbahmani
Copy link
Author

sbahmani commented Jul 30, 2020

I'm going to continue to use #417 to track the request to filter based on device MAC address.

For your use case, does the newly added getDevices() method satisfy your requirements. You can search the list that is returned for a BluetoothDevice with an ID matching your backend database.

See this guide for now to try out this experimental feature in Chrome.

https://docs.google.com/document/d/1RF4D-60cQJWR1LoQeLBxxigrxJwYS8nLOE0qWmBF1eo/edit works for those who are already connected. Newcomers need a filter deviceId.

@m-khnarges
Copy link

m-khnarges commented Aug 11, 2020

Hello,

If we does not have filter functionality then we need at least to see MAC addresses, but in iPhone devices (Bluefy app) we only have bluetooth devices names (Below image). It causes users not being able to choose correct device.

@m-khnarges
Copy link

m-khnarges commented Aug 11, 2020

I'm going to continue to use #417 to track the request to filter based on device MAC address.

For your use case, does the newly added getDevices() method satisfy your requirements. You can search the list that is returned for a BluetoothDevice with an ID matching your backend database.

See this guide for now to try out this experimental feature in Chrome.

Please check above comment

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