diff --git a/gatts_linux.go b/gatts_linux.go index 0422c44..21a4c81 100644 --- a/gatts_linux.go +++ b/gatts_linux.go @@ -24,6 +24,13 @@ func (a *Adapter) AddService(s *Service) error { 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()) if err != nil { return err