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

Device.DiscoverServices should allow for multiple service definitions with the same UUID #279

Open
ScottDuckworth opened this issue Jul 13, 2024 · 0 comments

Comments

@ScottDuckworth
Copy link

Per the GATT reference, part G, section 3.1:

A device or higher level specification may have multiple service definitions and may have multiple service definitions with the same service UUID.

However, this is not supported by this library, at least not for the implementations of Device.DiscoverServices found in gattc_linux.go, gattc_darwin.go, and gattc_hci.go. Each of these implementations store the services in a map keyed by UUID, which prevents multiple definitions with the same UUID.

It looks like the implementation in gattc_windows.go might work in this case, though I haven't tested it.

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

1 participant