How i can save string password in eeprom when i change password

i write in eeprom and read but i cant equal the read in eeprom in currunt password

You need to tell us more.

We're good, but not psychic.

You need to post your code.
In code tags.

i can sent code in discord

Let me guess - your password is a String?

At least post the code for


yes its string

1 Like

{sigh} Is it a String, or a string ?

It looks to me like it is a String, but I CAN'T SEE YOUR CODE

ok i try to sent my code

In the IDE type Crtl-A to highlight all the code then select Edit | Copy for forum. Then paste into forum post pressing </> button first

1 Like

i sent my code

String readStringFromEEPROM(int addrOffset)
  int newStrLen =;
  char data[newStrLen];
  for (int i = 0; i < newStrLen; i++)
    data[i] = + 0 + i);
  data[newStrLen] = '\ 0'; // !!! NOTE !!! Remove the space between the slash "/" and "0" (I've added a space because otherwise there is a display bug)
return String(data);

The array "data" doesn't have an element with the subscript "newStrLen", because the array is only "newStrLen" elements long.

Please, ALWAYS use code tags when posting code here.

you see my problem??1

Topics merged.

@ro7oma I'd appreciate it if you'd confine your replies to this forum topic. Creating new topics isn't beneficial to your cause and it makes work for the moderators as well.

you see my problem??!
replay me here icant replay in the other post
i see you reply now what i shloud i do in code?

Another merge.

@ro7oma I already asked you nicely not to do that. If you continue with this behavior, you're going to receive a suspension from the forum. Please be respectful of the people who are trying to help you.

I see a problem (the one I already pointed out), but I'm waiting for the code tags, so I can copy and take a closer look at the code.

1 Like

i tag the code you can copy it

@ro7oma is taking a few days break from the forum to contemplate the rules:

@ro7oma upon your return, I hope you will be more respectful of our forum.

void writeStringToEEPROM(int addrOffset, const String &strToWrite)
  byte len = strToWrite.length();
  EEPROM.write(addrOffset, len);
  for (int i = 0; i < len; i++)
    EEPROM.write(addrOffset + i, strToWrite[i]);

There's another, very obvious problem here.

Maybe you can use your enforced timeout to figure it out (it's a mirror-image of one in the read-from- EEPROM function) - it's hard to understand how you arrived at a couple of hundred lines of code, when this simple subsystem was untested