muka / go-bluetooth

Golang bluetooth client based on bluez DBus interfaces
Apache License 2.0
653 stars 123 forks source link

Bluez 5.64 #160

Closed wferrara closed 2 years ago

wferrara commented 2 years ago

Hi, I've a code using tinygo.org/x/bluetooth (which rely on this library) that with bluez v5.55 works flawlessly.

Trying to run it on Ubuntu 22.04 - which has bluez 5.64 - fails while discovering the Characteristics, with message: MapToStruct: Field not found: MTU

Is there a way to make it work on 5.64 too?

jacalvo commented 2 years ago

I think the issue is that master only works with bluez <=5.60, I had this same issue with 5.64 and downgrading to 5.60 worked for me.

But later I've tried with go get github.com/muka/go-bluetooth@bluez-5.63 without downgrading and that version seems to work with 5.64 too. Or at least the MTU issue is gone, not sure if they may be others if that version is not officially supported yet, but I haven't found any so far.