You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The EEPROM::put() method's param doesn't support the type of String or a pointer. The put() method used sizeof(T), But the sizeof(String)'s output is a const value of 12. So, when the String's length bigger than 12, it failed.
That is correct, String is an object that is not self contained, similar to STL containers. You have to serialize/deserialize such objects yourself into some contiguous memory block and pass the result to put().
Closing due to not an issue.
Uh oh!
There was an error while loading. Please reload this page.
Basic Infos
Platform
Settings in IDE
Problem Description
The EEPROM::put() method's param doesn't support the type of String or a pointer. The put() method used
sizeof(T)
, But thesizeof(String)
's output is a const value of 12. So, when the String's length bigger than 12, it failed.MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: