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