hbldh / bleak

A cross platform Bluetooth Low Energy Client for Python using asyncio
MIT License
1.61k stars 279 forks source link

Android: fix 'Descriptor None was not found!' #1580

Closed vabt-igd closed 1 month ago

vabt-igd commented 1 month ago

Use the 128bit UUID plus the Bluetooth base UUID for the notification descriptor on android devices. This fixes Descriptor None was not found! exceptions, as discussed in #823.

On the three android devices (API Level 33 and 32) I tested, this seems to work reliably.

As this is just a minor fix, I did not add an entry to the CHANGELOG.rst. Let me know if that should be changed.

This fix may also address #828.

vabt-igd commented 1 month ago

I think, this should be it now. Sorry for the mess. Tested on API 33 and 32 phones using three different services with corresponding characteristics (custom and non-custom) running on NRF52 chips.

dlech commented 1 month ago

Thanks for testing again!