I have some experience with pyboards and a TinyPICO, but I am a complete newbie regarding EP8266. I grabbed a couple of ESP-01S modules and flashed them with
esp8266-20191220-v1.12.bin based on
https://micropython.org/download/esp8266. REPL tests such as print("foo", 2+2) work fine.
But when I try connecting to my WiFi network using:
Code: Select all
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect(WLAN_SSID, WLAN_PASSWORD)
On both boards this results in a crash/reset loop, printing out gibberish along the way.
Am I doing this wrong ? Could omeone please point me to a minimal example of an ESP-01S successfully connecting to a WLAN? For the record my TinyPICO handles the above code with no problems.