Page 1 of 1

Object reference permanence

Posted: Tue Nov 30, 2021 11:59 pm
by MMliam
Issue: Using an ESP-01S to connect to a wifi network on RST.

I have no problem having an ESP-01S connect to my wifi network, the issue arises after the unit is put into deep-sleep. For a random activation an event needs to trigger the RST to bring the unit out of deep-sleep. Apparently, the network Object reference is stored in RAM, for on RST it no longer exists and the network connection must be re-established.

Is it possible, using microPython to have the network Object reference permanently stored in flash to maintain the network connection on re-awakening (assuming even that would work to maintain the connection)?