EEPROM

Function Description

Save the important data in the form of key-value pairs to the NVS partition to prevent data loss after shutdown (to prevent program processing from being blocked, the data is actually written in 5 seconds later), please do not write the data to the NVS partition repeatedly, otherwise it will affect the flash life and cause damage

  • EEPROM write key value Create a key-value pair to save data to EEPROM.

  • EEPROM read key Read out the data content corresponding to the keyword.

  • EEPROM read key to int Read out the data content corresponding to the keyword and convert Str to the Int.

Instructions

Create key-value to write to NVS partition and read data.

On This Page