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

Unable to call DiscoverServices() when passing a slice of specific UUIDs #2

Open
deadprogram opened this issue Feb 1, 2021 · 0 comments

Comments

@deadprogram
Copy link

I was trying to call the DiscoverServices() in order to retrieve only a specific list of services based on the UUIDs. However, it was consistently refusing to return any results.

This is the code that I was attempting to use:

	cbuuids := []cbgo.UUID{}
	for _, u := range uuids {
		uuid, _ := cbgo.ParseUUID(u.String())
		cbuuids = append(cbuuids, uuid)
	}

	d.prph.DiscoverServices(cbuuids)

If I pass an empty slice it returns all services as expected. However, when I try to use a slice of UUID strings, it does not return any results.

Please see tinygo-org/bluetooth#50

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