bluetooth icon indicating copy to clipboard operation
bluetooth copied to clipboard

Access RSSI after connection has been made

Open GabeJerome opened this issue 2 years ago • 3 comments

I am connected to my device and pulling data from it with no problem. However, I want to display the current signal strength for the device, but ScanResult.RSSI only contains the RSSI from when a packet was last received from the device (when it was scanned). Is there a way I can continuously obtain the RSSI after the connection has been made? I have attempted to set up a watcher to wait for advertisements but that will not work because I am already connected to the device and I want to stay connected to it.

GabeJerome avatar Apr 06 '23 20:04 GabeJerome

For which BLE stack is this? (Linux, MacOS, Windows, Nordic SoftDevice)

aykevl avatar Apr 06 '23 23:04 aykevl

@aykevl This is on Windows 10.

GabeJerome avatar Apr 06 '23 23:04 GabeJerome

This is not currently supported in the Bluetooth package, and I don't know how it works on Windows. On the Nordic SoftDevice there is the sd_ble_gap_rssi_get function for this purpose.

aykevl avatar May 01 '23 18:05 aykevl