I'm not completely convinced the way I've implemented prefs.putString is correct. For example, where I have:
const char* MsgCallsign = "mike 7 keelo charlee mike"; // M7KCM
then later:
prefs.putString("CS",MsgCallsign);
which works fine, HOWEVER:
MsgCallsign = prefs.getString("CS",MsgCallsign).c_str();
shouldn't work (I think), as MsgCallsign is a const. Maybe I'm confused and it's the pointer to the start of the string which is const?
UPDATE it turns out the stings component wasn't working at all: the logic calling it was flawed. The strings are now commented out until I get a chance to investigate.
I'm not completely convinced the way I've implemented prefs.putString is correct. For example, where I have:
const char* MsgCallsign = "mike 7 keelo charlee mike"; // M7KCM
then later:prefs.putString("CS",MsgCallsign);
which works fine, HOWEVER:MsgCallsign = prefs.getString("CS",MsgCallsign).c_str();
shouldn't work (I think), as MsgCallsign is a const. Maybe I'm confused and it's the pointer to the start of the string which is const?UPDATE it turns out the stings component wasn't working at all: the logic calling it was flawed. The strings are now commented out until I get a chance to investigate.