← index #1946Issue #1942
Likely Duplicate · medium · value 0.996
QUERY · ISSUE

esp8266: wlan.connect() may crash when there're too many scan results

openby ceremcemopened 2016-03-30updated 2016-06-06
port-esp8266

As a follow up of #1943, wlan.connect function causes reset:

print("naber")
naber
>>> import network
>>> wlan = network.WLAN(network.STA_IF)
>>> wlan.active(True)
>>> wlan.scan()
f r0, scandone
[(b'aktos-elektronik', b'\x00\x1c\xa8\xf7\xe8M', 6, -49, 3, 0), (b'UEM', b'\xf4\xe3\xfb\xbak\xdc', 9, -92, 4, 0), (b'TTNET_HUAWEI_827F', b'\xec#=d\x82\x88', 10, -91, 4, 0)]
>>> wlan.isconnected()
False
>>> wlan.connect("aea", "084DA789BF")
Fatal exception 3(LoadStoreErrorCause):
epc1=0x4000deed, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40000008, depc=0x00000000

 ets Jan  8 2013,rst cause:1, boot mode:(1,7)
CANDIDATE · ISSUE

esp8266 network run wlan.connect esp8266 restart !

closedby skylin008opened 2016-03-29updated 2016-03-29
port-esp8266

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!

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied