EEPROM

EEPROM and objects

You should only use EEPROM to restore primitive types like int, bool, char, arrays of these types, and simple struct.

You cannot store String values in EEPROM. Since this object stores the contents of the string in a separate heap-allocated memory block, it will not be restored properly. This also applies to other similar classes like Variant.

If you want to store character strings, you should use a fixed-length array of char instead of string.