gatt-python icon indicating copy to clipboard operation
gatt-python copied to clipboard

descriptor_read_value_failed Callback

Open jasonspage opened this issue 6 years ago • 1 comments

If a descriptor value fails to be read, the Descriptor method read_value will call: self.service.device.descriptor_read_value_failed(self, error=error).

This causes an error because the Descriptor class has no 'service' property. The line should be corrected to: self.characteristic.service.device.descriptor_read_value_failed(self, error=error).

This Class exists in gatt_linux.py. The offending code is on line 541 of this file.

jasonspage avatar Oct 14 '19 18:10 jasonspage

Would you mind creating a PR which we can merge?

On 14. Oct 2019, at 20:35, jasonspage [email protected] wrote:

 If a descriptor value fails to be read, the Descriptor method read_value will call: self.service.device.descriptor_read_value_failed(self, error=error).

This causes an error because the Descriptor class has no 'service' property. The line should be corrected to: self.characteristic.service.device.descriptor_read_value_failed(self, error=error).

This Class exists in gatt_linux.py. The offending code is on line 541 of this file.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

larsblumberg avatar Oct 15 '19 04:10 larsblumberg