Hi there!
When i use wlan.scan() for check the wireless networks i receve back a string with all’ networks, my problem is how i can exstrapolate the data ?
Thank you
Sergio
Wlan.scan()
Re: Wlan.scan()
Hi,
Sorry I'm not sure what you mean by "extrapolate the data".
scan returns a list of tuples. Each tuple is (according to the docs) (ssid, bssid, channel, RSSI, authmode, hidden).
So for example, you can use Python's tuple unpacking:
Sorry I'm not sure what you mean by "extrapolate the data".
scan returns a list of tuples. Each tuple is (according to the docs) (ssid, bssid, channel, RSSI, authmode, hidden).
So for example, you can use Python's tuple unpacking:
Code: Select all
x = sta_if.scan()
for result in x:
ssid, bssid, channel, RSSI, authmode, hidden = x
print(ssid)
Re: Wlan.scan()
Hi
yes that is what i mean thank you soo much. Your code gave me one error but i sobstitute result with x and now wok
Have a wonderful day
Sergio
yes that is what i mean thank you soo much. Your code gave me one error but i sobstitute result with x and now wok
Have a wonderful day
Sergio