deviceplug / btleplug

Rust Cross-Platform Host-Side Bluetooth LE Access Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android: RSSI is None for btleplug/src/droidplug/jni/objects.rs

Avani-A-S opened this issue · comments

commented

Describe the bug
The rssi property is set to None in the code in btleplug/src/droidplug/jni/objects.rs.

Some(PeripheralProperties {
address: addr,
address_type: None,
local_name: device_name,
tx_power_level,
manufacturer_data,
service_data,
services,
rssi: None,
})

Expected behavior
Should return actual RSSI value.

Actual behavior
RSSI is None.

Additional context
I observed that getRssi is never used to set the RSSI value. I am not sure after modifying /objects.rs for getRssi how to build it.

commented

Closing the issue as PR merged.