I've suddenly experienced that most all three ESP8266 boards (WeMod D1 mini) have stopped connecting to the Wifi. Below is the code, stripped to the network related parts, that was successfully used to connect before:
Code: Select all
import network
sta_if = network.WLAN(network.STA_IF)
ap_if = network.WLAN(network.AP_IF)
ap_if.active(False)
sta_if.active(True)
sta_if.connect('o2-WLAN42', '94796AV9436KQQN3')
while not sta_if.isconnected(): pass
print('Connected to wireless')
Code: Select all
>>> sta_if.active()
True
>>> sta_if.status()
4
>>> sta_if.ifconfig()
('0.0.0.0', '0.0.0.0', '0.0.0.0', '208.67.222.222')
>>> sta_if.isconnected()
False
>>> sta_if.scan()
[(b'CORRECT-SSID', b'L\t\xd4,\x82\x9a', 10, -89, 3, 0)]
Code: Select all
STAT_CONNECT_FAIL – failed due to other problems
Code: Select all
WL_CONNECT_FAILED = 4
- Could you please point me to the source for the network module?
- Other suggestions how to approach the problem from the esp8266 side.