Documentation WLAN.connect()
In https://docs.micropython.org/en/latest/wipy/tutorial/wlan.html, the connect() method reads
wlan.connect(net.ssid, auth=(net.sec, 'mywifikey'), timeout=5000)
In contrary, https://docs.micropython.org/en/latest/library/network.WLAN.html?highlight=wlan#network.WLAN.connect describes the connect() call as
WLAN.connect(ssid=None, password=None, *, bssid=None)
Which one is the correct/current one (and for which port ?) ?
This is quite confusing for new users, I think.
esp8266 network run wlan.connect esp8266 restart !
The firmware version for:MicroPython v1.6-312-gb4070ee-dirty on 2016-03-29; ESP module with ESP8266
when I run follow code,esp8266-12f restart.
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.isconnected()
False
wlan.connect('essid', 'password') #essid and password from router distribution
the esp8266-12f restart every time.
How to fix this issue?Tks!