unknown status param 'rssi'

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

unknown status param 'rssi'

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

Hi,

i changed from ESP8266 to ESP32.

And now on:
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect('Freifunk')
while not wlan.isconnected():
time.sleep(0.5)
rssi = wlan.status('rssi')

I get the error: "unknown status param"

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

Best regards
kamkalian

jbhome
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

AbstractNIC.status([param])
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.
Jim

Post Reply