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

Introduce an interface to wrap around the bluetooth-library-specific calls #5

Closed
MoralCode opened this issue Dec 22, 2021 · 1 comment
Labels
enhancement New feature or request low priority

Comments

@MoralCode
Copy link
Collaborator

This would allow the specific bluetooth library in use to potentially be swapped out and/or made the responsibility of the application, but also may provide more surface for bugs and/or issue reports as people will likely use different bluetooth libraries

Some Bluetooth backends to consider when designing such an interface:

@MoralCode
Copy link
Collaborator Author

Fully abstracting the bluetooth library seems like it may not be especially useful and may increase debugging complexity if clients are allowed to use different bluetooth backends what may have different bugs.

in the future the interaction with the bluetooth library may be beneficial to abstract but for now there doesnt seem to be enough value to justify the additional effort.

#17 already implements a rewrite of the backend so that may provide useful information for how to create an API thats reasonably compatible with any bluetooth backend.

given the current state of flutter bluetooth libraries (TL;DR "not a lot of great, well-maintained options") this ability to swap between them may be something that could help to abstract into another library for other bluetooth projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

1 participant