fixes bluez 0.55 service registration.
muka/go-bluetooth does some magic so you can use short UUIDs and it'll auto
expand them to the full 128 bit uuid. setting these flags disables that behavior.
related issues:
- allows updating muka library to resolve https://github.com/tinygo-org/bluetooth/issues/35
- fixes the regression the upgrade caused https://github.com/tinygo-org/bluetooth/issues/46
- commit causing the regression in upstream 1c4c1c8613
This commit is contained in:
parent
ab40fc77fe
commit
d985dcb55c
1 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,13 @@ func (a *Adapter) AddService(s *Service) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disable magic uuid generation because we send through a fully formed UUID.
|
||||||
|
// muka/go-bluetooth does some magic so you can use short UUIDs and it'll auto
|
||||||
|
// expand them to the full 128 bit uuid.
|
||||||
|
// setting these flags disables that behavior.
|
||||||
|
app.Options.UUIDSuffix = ""
|
||||||
|
app.Options.UUID = ""
|
||||||
|
|
||||||
bluezService, err := app.NewService(s.UUID.String())
|
bluezService, err := app.NewService(s.UUID.String())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue