Closed pierre-24 closed 5 years ago
Hello and thank you for reporting this. It is confusing, I can give you that, but it is a BlueZ backend specific thing and not entirely a bug.
The Battery level has been moved from being reported as a regular characteristic to a separate interface in the BlueZ DBus API in version 5.48. It will not show up as a characteristic in bleak due to that, but it should be handled by the current code.
The Device name was new though. I cannot find the documentation to support it, but I think the BlueZ DBus API renders that information on the device interface and I have drafted a fix for it, accessing the name where I believe it is located in the BlueZ DBus representation of the device. That change will be released with version 0.5.1.
The Peripherical Prefered Connection Parameter
I have no fix for as of now. I have not device with that charactersitic, so I cannot test it. Can you give me an example value of the content of it?
Is firmware rev also problematic? I have no problems accessing it on my device by uuid?
Hello. Thanks for investigating the issue :)
Firmware rev is ok, but it was appearing in service_explorer.py
, so it should not cause any issue.
Concerning Peripherical Prefered Connection Parameter
, the value on my device is 50 00 a0 00 00 00 e8 03
(obtained using gatttool), but I have no idea on how to interpret this, since the documentation of this device does not mention anything on that, and I actually just reported it because it showed up in the list :-°
Description
While running the
service_explorer.py
on my device, I found that a few characteristics are missing. When I explicitely request this characteristic to be read, I get ableak.exc.BleakError: Characteristic with UUID xxxx could not be found
What I Did
I ran the
service_explorer.py
script. The output isOn the other hand, if I use
gatttool
, I get the following(please scroll right for the additional information)
As you can see, the three first characteristics (marked by a star in the output, added by me) are not reported by the script. Of course, reading their values through
gatttool
works correctly (see last line), but as I mention, the following does not:Since it results in
bleak.exc.BleakError: Characteristic with UUID 00002a00-0000-1000-8000-00805f9b34fb could not be found!
. ReadingCHARACTERISTIC_BATTERY_LEVEL
does, on the other hand, work.In itself, I'm not interested in those characteristics, but I think it worth reporting :)