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 #1332

Closed
wants to merge 8 commits into from

Conversation

michealroberts
Copy link
Contributor

@michealroberts michealroberts commented Feb 28, 2022

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

Special mention to @JamieCurnow who helped with documentation and usage suggestions. Please if possible could we add him as a contributor 🙏

tsconfig.json Outdated Show resolved Hide resolved
@michealroberts
Copy link
Contributor Author

@antfu Any thought on this one? Close, or does this need further review?

@antfu
Copy link
Member

antfu commented May 31, 2022

LGTM. There are conflicts that need to be resolved and you didn't open the permission for me to push. We could merge it once resolved.

@michealroberts
Copy link
Contributor Author

@antfu Awesome. Rebased onto the latest main branch ... let me know if you need anything else! 👍

@michealroberts
Copy link
Contributor Author

@antfu Linting and Testing workflows seem to be stuck ...

@antfu
Copy link
Member

antfu commented Jun 2, 2022

image

It still marks conflicting. You may want to merge with main instead of force push.

@michealroberts
Copy link
Contributor Author

@antfu Let me know how it looks now ... fixed a few of the remaining issues from workflows. 👍

@michealroberts
Copy link
Contributor Author

@okxiaoliang4 I think this one is ready now to go ... thoughts?

@antfu
Copy link
Member

antfu commented Jun 16, 2022

It still seems unmergeable to me. Maybe you could create a fresh new branch from the current main and open another PR? Thanks.

@michealroberts
Copy link
Contributor Author

@antfu closing this - new PR is here #1694

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