← index #3906Issue #11181
Related · high · value 0.097
QUERY · ISSUE

RSSI of connected STAs from AP not working

openby treyes133opened 2018-06-29updated 2026-03-23
enhancementport-esp8266proposed-close

Howdy!

In the ESP8622 documentation (source linked below), it says that it is possible to get the RSSI of all connected STA on the AP, with network.status("stations"), however this function is not working.

Micropython version: 1.9.4-277-gab02abe9, ESP module ESP8266
Board: Adafruit Huzzah feather

The network object (ap_if) is sound, and devices can connect to the AP.

The command I am running is as follows:
ap_if.status('stations')

The error is as follows:
ValueError: Unknown status param

I have used the network.status("rssi") as a STA to get RSSI between STA and AP, and this confirmed works.

Any help is greatly appreciated.

http://docs.micropython.org/en/latest/esp8266/library/network.html#module-network

CANDIDATE · ISSUE

docs: full Documentation for the Pi Pico W

openby hasenradballopened 2023-04-02updated 2025-02-04
needs-info

a) When I want to use the following code on the Pico W:

'''

w = network.WLAN(network.STA_IF)
w.status('rssi')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: unknown status param
'''
I got an error!!!

But in the documentation is described exact this usage....

'''
Return the current status of the wireless connection.
When called with no argument the return value describes the network link status. The possible statuses are defined as constants:
STAT_IDLE – no connection and no activity,
STAT_CONNECTING – connecting in progress,
STAT_WRONG_PASSWORD – failed due to incorrect password,
STAT_NO_AP_FOUND – failed because no access point replied,
STAT_CONNECT_FAIL – failed due to other problems,
STAT_GOT_IP – connection successful.
When called with one argument param should be a string naming the status parameter to retrieve. Supported parameters in WiFI STA mode are: 'rssi'.
''
b) Next issue:

when I use the wifi connect method with a wrong password in a network which I logged in recently with the right password, the login seems to be successfull!!!
WHY?
WTF happens here?

For example I use the following config for my connection:

config = {'ssid': 'default', 'key': 'default'}

If I set ONLY the right ssid and let key as default the pico connects!?!

You have to give just the right 'ssid` to log in.
This is not the good behaviour I want to have!

My example is here:
https://github.com/hasenradball/PicoEx/blob/main/Pico_wifi_example.py

Frank

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied