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

feat(useBluetooth): new function #1694

Merged
merged 1 commit into from Jun 16, 2022
Merged

Conversation

michealroberts
Copy link
Contributor

Web Bluetooth API Composable

Description

A reactive for working with the Web Bluetooth API which provides the ability to connect and interact with Bluetooth Low Energy peripherals.

The Web Bluetooth API lets websites discover and communicate with devices over the Bluetooth 4 wireless standard using the Generic Attribute Profile (GATT).

Considerations

N.B. It is currently partially implemented in Android M, Chrome OS, Mac, and Windows 10. For a full overview of browser compatibility please see Web Bluetooth API Browser Compatibility

N.B. There are a number of caveats to be aware of with the web bluetooth API specification. Please refer to the Web Bluetooth W3C Draft Report for numerous caveats around device detection and connection.

N.B. This API is not available in Web Workers (not exposed via WorkerNavigator).

Fixes #1286


  • Bug fix
  • New Feature
  • Documentation update
  • Other

@michealroberts
Copy link
Contributor Author

useBluetooth._.VueUse.mp4

@michealroberts
Copy link
Contributor Author

@antfu New PR here off of downstream latest main branch.

@michealroberts
Copy link
Contributor Author

@antfu Tests are failing but due to a random status badge fetch error. Please advise if I need to do anything? (I can't re-run the workflow, but it might be worth re-running to see if it wasn't an intermittent error)

@antfu antfu merged commit 06230dc into vueuse:main Jun 16, 2022
@antfu
Copy link
Member

antfu commented Jun 16, 2022

Thanks!

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

Successfully merging this pull request may close these issues.

proposal: useBluetooth()
2 participants