-
Notifications
You must be signed in to change notification settings - Fork 7.6k
EEPROM.readString(address) reads string with junk characters at the end #1608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yup. I'll put in a patch. I think most people are using Preferences, so this slipped by. |
Oh, I just now saw the Preferences library, it looks good. I will try it then. |
For example if I wrote "I love ESP32" in address 0 or in any address, How can I know the number of addresses which be taken to store the previous string ? |
This issue is closed. This site is not for tutorials. |
Hardware:
Board: ESP-WROOM-32
Core Installation/update date: 01/JUN/2018
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 921600
Description:
I am trying to write some string to EEPROM and retrieve it later. Whenever I try to read the string using EEPROM.readString(address), one or two junk characters like (`, ?, ") are at the end of the string. Even in the example eeprom_extra, the last two operations that involve writing and reading of strings, the output for the string operations are,
Sketch:
Debug Messages:
The text was updated successfully, but these errors were encountered: