[SOLVED] Issues connecting to WLAN after deep sleep
Posted: Sun Apr 07, 2019 8:06 am
Hi,
I'm having an issue with connecting to my WLAN after a deep sleep.
I'm using MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Since the credentials are stored in flash, all I have to do to reconnect to the last AP should be
But this only works if it is a hard reset or machine.reset(), not if the ESP is waken up from machine.deepsleep() using RTC IRQ or even esp.deepsleep(time). If I do this however, it will connect to my WLAN again, even after a deep sleep.
I'm I missing something from the documentation regarding deep sleep and WLAN capabilities? Or is the documentation missing something regarding this? I don't want to be using wlan.connect(..., ...) on every reset as (in my understanding) it will break the flash.
Any suggestions? Thanks in advance!
Regards,
Jonas
I'm having an issue with connecting to my WLAN after a deep sleep.
I'm using MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Since the credentials are stored in flash, all I have to do to reconnect to the last AP should be
Code: Select all
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
Code: Select all
import network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect("myssid", "mypassword")
Any suggestions? Thanks in advance!
Regards,
Jonas