canonical / bluez.dart

Mozilla Public License 2.0
52 stars 20 forks source link

"Peripherial" typo causing "Failed to parse advertisement" error #98

Closed matt-meades closed 3 months ago

matt-meades commented 4 months ago

When trying to advertise as a peripheral device, I was getting the below error:

image

And using dbus-monitor found that the array being sent had the same typo from the BlueZAdvertisementType enum:

image

image

Upon forking the repo and fixing this typo, the error was resolved and I could advertise as a peripheral device.

I'm surprised that nobody else has encountered this issue so let me know if I'm using the package wrong, if not I'm happy to open a PR to fix this.

robert-ancell commented 3 months ago

Looks like a bug, please open a PR :)