-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Method for getting RSSI of the currently connected AP? #2785
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
Comments
Thanks for the initiative. Other contributors may chime in here, but otherwise please see #2602. |
From the first glimpse this method makes only sense in the station mode interface. So that check should be added at least. This method will most likely not make it into a general network API, because it is only valid for wireless networks. |
I think network.WLAN class would be a obvious place. |
Of course. |
...but adding an additional new method is more impact on the API than adding another keyword argument to a method which is used in a similar environment. |
STM32: adds support for stm32f746xx MCU and the nucleo_f746zg board
@dpgeorge if I am using this I always get the same value. Am I using it wrong?
I am actually calling this wifi.status('rssi') in an asyncio task every 3 seconds and it always prints the same value, no matter if I move the device or the AP. If I reboot and get a fresh connection the value changes but then stays exactly the same. EDIT: I just realized that the AP we are using is hidden. Maybe that helps - I tried to receive the rssi via wifi scan but apparently this ssid was not part of the scanning list - connecting to it works - so I assume it is just not part of the scan result which made the rssi value unavailable. |
Currently there doesn't seem to be a method for getting rssi for currently connected ap. WLAN.scan does return rssi, but it takes some time and also return lots of unnecessary information.
I propose adding a method for getting the current rssi.
As a proof of concept I added such a method https://github.com/mika-koivusaari/micropython/tree/esp8266-rssi
But it would most probably be best to discuss before even making a pull-request. Questions that come mind are at least.
2.Should it have some standard range it returns, or should it just return whatever the underlying hw returns?
Comments?
The text was updated successfully, but these errors were encountered: