Skip to content

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

@deadprogram

Description

@deadprogram

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions