Object reference permanence

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Object reference permanence

Post by MMliam » Tue Nov 30, 2021 11:59 pm

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)?

Post Reply