kevincar / bless

Cross-platform Bluetooth Low Energy Server Python Library
MIT License
86 stars 28 forks source link

BlessGATTCharacteristicCoreBluetooth initialization doesn't match parent #59

Closed kevincar closed 2 years ago

kevincar commented 2 years ago

The problem The initialization of the BlessGATTCharacteristicCoreBluetooth object doesn't conform to the class' parent call signature. It requires a reference to the service to which it is being added.

Edit: This is also true for the service as it requires a reference to the server

Reproduction Something like the following will work on other backends, but not macOS

...
service: BlessGATTService = server.get_service(service_uuid)
await new_characteristic.init(service) # This will error on macOS
...

Expected behavior The line indicated above should not error

Desktop (please complete the following information):