Hello. I have developed ESP32 program where I must save some values to internal EEPROM so the devices can read it back during a restart. I must save 2 values to EEPROM :
1. Serial number
2. Quantity.
I am writing to the EEPROM as following:
int address = 0
EEPROM.writeUShort(address, quantity);
address += sizeof(unsigned short);
EEPROM.writeString(address, "string);
EEPROM.commit();
I always start from address 0 an write 2 values, next time I want to update data, I am reinitialzing address and replacing the values in EEPROM.
I read something about wear leveling and would like to implement something simmilar.
I want to preserve it for as long as possible as I do not want to have any problems in the future regarding wore down EEPROM. Have anyone implemented something simmilar or have any ideas?
Also, I would like to know what happens when the EEPROM is fully worn? Will the device stop working? or I just wont be able to save data there anymore
1. Serial number
2. Quantity.
I am writing to the EEPROM as following:
int address = 0
EEPROM.writeUShort(address, quantity);
address += sizeof(unsigned short);
EEPROM.writeString(address, "string);
EEPROM.commit();
I always start from address 0 an write 2 values, next time I want to update data, I am reinitialzing address and replacing the values in EEPROM.
I read something about wear leveling and would like to implement something simmilar.
I want to preserve it for as long as possible as I do not want to have any problems in the future regarding wore down EEPROM. Have anyone implemented something simmilar or have any ideas?
Also, I would like to know what happens when the EEPROM is fully worn? Will the device stop working? or I just wont be able to save data there anymore