How many times can I software restart ESP32 ? #8223
-
Is there any limit or recommended times I should use software restart in esp32 ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Short answer: there is no limit. Discussion: The module seems to have identical startup for power and software resets. With a software reset it's possible to set certain IRAM(?) variables to persist state across reboots. That's the mechanism IDF uses to persist crash info. Example #8105. I'm curious. Why restart every 15s? |
Beta Was this translation helpful? Give feedback.
Short answer: there is no limit.
Discussion:
15 seconds is pretty short. This would not play well with WiFi or Ethernet connections. Are you using the module offline?
Flash memory should not be affected unless you are saving to NVS or writing a file before every restart.
The module seems to have identical startup for power and software resets. With a software reset it's possible to set certain IRAM(?) variables to persist state across reboots. That's the mechanism IDF uses to persist crash info. Example #8105.
I'm curious. Why restart every 15s?