G6EJD / ESP32-e-Paper-Weather-Display

An ESP32 and 2.9", 4.2" or 7.5" ePaper Display reads Weather Underground data via their API and then displays the weather
Other
978 stars 207 forks source link

Flash degrade like in ESP8266? #159

Closed muelli01 closed 3 years ago

muelli01 commented 3 years ago

The ESP8266 writes the WiFi credentials to flash every time it wakes up from sleep, unless you set WiFi.persistent(false); before WiFi.begin(); Omitting that can degrade flash relatively fast.

I dumped the flash from my ESP32 and like in the ESP8266 I found the hard coded credentials stored in the flash file. However I do not know if the ESP32 behaves the same or just simply writes it into flash once. But one might be better safe than sorry, I guess and add it to the WiFi routine.

G6EJD commented 3 years ago

According to the latest Espressif documentation:

'Starting from version 3 of this core, persistence is disabled by default and Wi-Fi does not start automatically at boot (see PR #7902).'

So no need to change anything.