hbldh / bleak

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

backends/p4android: fix using wrong tx_power value #1549

Closed dlech closed 2 weeks ago

dlech commented 2 weeks ago

This was using the advertisement received signal strength indicator instead of the transmitted power level. This is now fixed.

Fixes: https://github.com/hbldh/bleak/issues/1532

MarkusPiotrowski commented 2 weeks ago

Thank you for fixing this. Could you also update the docstring for AdvertisementData to make clear to the user that this is actually reading the transmitted power level?