deviceplug / btleplug

Rust Cross-Platform Host-Side Bluetooth LE Access Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

winrt backend currently reports rssi as TX power

rib opened this issue · comments

Describe the bug
The winrt backend is reporting RawSignalStrengthInDBm as the tx_power_level instead of TransmitPowerLevelInDBm

Expected behavior
BluetoothLEAdvertisementReceivedEventArgs::TransmitPowerLevelInDBm should be reported instead

Incidentally it also looks like it would be good to support reporting rssi in btleplug in addition to tx power so it's possible to calculate/estimate the signal loss. (#76 raise this before but I think perhaps rssi was being considered as equivalent to tx power when the issue was closed?)

Fixed in dev by #197.