with the following code I can successfully establish a WiFi connection between my ESP8266 and my home Wlan.
Code: Select all
def WLan_verbinden(SSID, passwort):
sta_wlan = network.WLAN(network.STA_IF)
if not sta_wlan.isconnected():
while not sta_wlan.isconnected():
However, it SEEMS to happen that after a certain time the WiFi connection gets lost.
I am wondering, what solutions are you using to restore a WiFi connection?
One solution I am currently thinking of: to use a timer-interrupt to call my function above from time-to-time.