Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access RSSI after connection has been made #154

Open
GabeJerome opened this issue Apr 6, 2023 · 3 comments
Open

Access RSSI after connection has been made #154

GabeJerome opened this issue Apr 6, 2023 · 3 comments

Comments

@GabeJerome
Copy link

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.

@aykevl
Copy link
Member

aykevl commented Apr 6, 2023

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

@GabeJerome
Copy link
Author

@aykevl This is on Windows 10.

@aykevl
Copy link
Member

aykevl commented May 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants