spacecheese / bluez_peripheral

A library for building BLE peripherals using GATT and bluez
MIT License
38 stars 8 forks source link

Correct in bug in the property changed event #1

Closed Tim--- closed 2 years ago

Tim--- commented 2 years ago

Hi,

This is a simple bugfix for the parameters sent with the PropertiesChanged signal. According to the DBus specs, the last parameter of PropertiesChanged is "invalidated_properties", which "is an array of properties that changed but the value is not conveyed". Since we provide the value in the "changed_properties" parameter, we don't need to specify it.

It is a small change, but it avoids bluetoothd from crashing with the current version.

spacecheese commented 2 years ago

Looks good, Thanks for the PR.