So basically, I'm running out of SRAM and am starting to get unknown behaviour and was wondering I had a function like so:
void function(String str){
//do some stuff
}
and the "str" variable is constant could I store it in eeprom to save memory or declare it as a constant or would this have no effect on the amount of SRAM used. I am asking because I call the same string literal in several functions.
Finally how would I go about storing it in eeprom a lot of the examples are a bit confusing