-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
I want to get rssi #42
Comments
could you be more specific ? which platform ? use case ? etc ( https://tinyurl.com/bluepad32-help ) |
I'm using an ESP32 Dev kit and an Android TV Game controller. |
I guess are you using Arduino, correct ? I guess I can put that info in But I'd like to understand the use case a bit more.... what do you plan to do with the RSSI ? close the connection if not strong enough ? inform the user ?... the more details you add, easier for me to implement a feature that would be useful for you |
I would like to record the rssi when input lag is measured. |
Hi, this feature would also be really helpful for me. I am using a PS5 controller as a remote controller with an ESP32 running the bluepad32 arduino library, and reading out the RSSI would be useful as a safety feature so that a drop in signal strength can be detected. |
@apoll2000 as a safety measure you can do something similar to what I described here: Regarding RSSI, the entire BTstack API is avaiable for Arduino users... you can call any API. Not sure how to get it runtime... but if BTstack has that API, then you should be able to call it. |
Thank you very much for your quick response, I had to read into everything a bit to understand. The RSSI readout is implemented in the BTStack GAP API, with the function It would be great if you could help me access that from within Arduino. Also just wanted to say thank you for this great library, it's already helping me a lot! |
@apoll2000 good finding. It seems to be an async functions, so I need listen to the RSSI event, and then update the value internally, so that Arduino can read it. Not a trivial change, but I'll think what's the best way to integrrate it into BP32 |
...BP32.update was last called. Mitigates ricardoquesada/bluepad32#42
I've just added some changes so that this issue can be mitigated:
Sketch updated: |
Thank you for this, the |
Hi, it seems I tried that like the FAQ says, but the print output (2 and 3) come never. My Code (connected with XBox Controller)
|
What |
Is it possible to get rssi?
The text was updated successfully, but these errors were encountered: