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

Bike Connectivity to Bluetooth #2

Open
VincentSaelzler opened this issue Jul 2, 2021 · 2 comments
Open

Bike Connectivity to Bluetooth #2

VincentSaelzler opened this issue Jul 2, 2021 · 2 comments

Comments

@VincentSaelzler
Copy link

Where in the code does the Bluetooth connection with the bike happen?

This is the closest thing I can find:

const device = await navigator.bluetooth.requestDevice(options);

I am trying to implement something similar! I would love to utilize what you have already written if possible.

Thanks!

@ericsakmar
Copy link
Owner

Yes, that's the spot. The browser will present a list of devices that match the options, and you can select one from there.

@VincentSaelzler
Copy link
Author

VincentSaelzler commented Jul 2, 2021

Thanks for clarifying!

I was trying to use Firefox. According to this documentation (ironically from Mozilla) it appears that Web Bluetooth is not supported in Firefox.

https://developer.mozilla.org/en-US/docs/Web/API/Bluetooth/requestDevice#browser_compatibility

I will give it another try using Chrome/Chromium.

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