title: Arduino esp32: storing array of struct EEPROM
body: <p>I'm facing a problem can't be able to resolve to store an array of struct in nvs. </p>
  
  <p>I have this structure composed of variable length String: </p>
  
  <pre><code>typedef struct
   {
       String Name;
       String Surname;
       String Status;
       String Expiry;
   }  EpromTags;
  
  EpromTags arraytag[50];
  
  void setup()
  {
    //should load arraytag from EEPROM here
   } 
  
  </code></pre>
  
  <p>In other routines I have this data coming from a remote server, so I'm saving it to me arraytag</p>
  
  <pre><code>
  for (int i=0, i&lt;50,i++)
   {
      arraytag[i].Name = valuename[i];
      arraytag[i].Surname = valuesurname[i];
      arraytag[i].Status = valuestatus[i];
      arraytag[i].Expiry = valueexp[i];
   }  
  
  //should save to arraytag to EEPROM here
  </code></pre>
  
  <p>The idea is to load the value of the structure to men on arrive and load back on setup. </p>
  
  <p>I have been able to write single elements to EEPROM but I'm finding difficulties in saving this array of struct. </p>
  
  <p>can someone drive me in the right directions or have suggestions? </p>