unknown status param 'rssi'

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Posts: 2
Joined: Mon Oct 29, 2018 8:14 pm

unknown status param 'rssi'

Post by kamkalian » Fri Dec 21, 2018 9:58 am


i changed from ESP8266 to ESP32.

And now on:
wlan = network.WLAN(network.STA_IF)
while not wlan.isconnected():
rssi = wlan.status('rssi')

I get the error: "unknown status param"

Can someone help me?
I need a live signal strength value.

Best regards

Posts: 1
Joined: Mon Dec 31, 2018 10:07 pm

Re: unknown status param 'rssi'

Post by jbhome » Mon Dec 31, 2018 10:09 pm

Query dynamic status information of the interface. When called with no argument the return value describes the network link status. Otherwise param should be a string naming the particular status parameter to retrieve.

The return types and values are dependent on the network medium/technology. Some of the parameters that may be supported are:

WiFi STA: use 'rssi' to retrieve the RSSI of the AP signal
WiFi AP: use 'stations' to retrieve a list of all the STAs connected to the AP. The list contains tuples of the form (MAC, RSSI).

This is from the library network docs page. an example would have been helpful.
Hope this helps.

Post Reply