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
unknown status param 'rssi'
Re: unknown status param 'rssi'
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
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