ESP32 Persistent Boot Counter
Keep a boot count in nonvolatile Preferences storage.
Parts and sourceBefore you start
Espressif provides the linked Arduino example. Select the definition for your classic ESP32 carrier and check which pins it exposes.
Getting started
- Open the linked example in the Arduino ESP32 core and upload it to your development board.
- Upload the sketch, reset twice and compare the reported values. Use a fresh namespace to test initialization.