UIFlow Guide
Save important data in the form of key-value pairs to NVS partition to prevent data loss after shutdown (data is actually written after 5 seconds to prevent program processing from being blocked).
EEPROM write key value
EEPROM read key
EEPROM read key to int
Create key-value pairs to write to the NVS partition, and read the data