recommend using PString.h assigning stringsvariables or return-values which are strings seems not possible
In the meantime I have done some testcoding using the library PString.h which has the same functionality and is FUNCTIONING. I can't see any advantages of StackString over PString. Not seeing advantages might caused by my low-level knowledge about coding C++. Anyway PString offers a working solution for me. so you can consider this issue as obsolet.
uploading code that is not well tested and without working example-codes in my opinion is not a help to others. It is a waste of time.
You may should add a hint as the first line "Work in progress - use just as inspiration"
The following code produces an compiler-error
no matching function for call to 'Stack::StackString<50>::append(String&)' If only hardcoded strings can be assigned the StackString-Library is useless.
Do I have to do some typecasting? If yes how does it look like? `#include <StackString.hpp> using namespace Stack; // it is very important to have this line of code. Otherwise the code won't compile
StackString<50> myString = StackString<50>("Hello, World!");
String NormalString = "1234Test";
void setup() { Serial.begin(115200); Serial.println(); Serial.println(); Serial.println(myString.c_str());
myString.prepend("Everybody say: "); Serial.println(myString.c_str());
myString.append(" How are you doing?"); Serial.println(myString.c_str()); Serial.println();
//myString = NormalString; myString.append(NormalString); //<--- This line causes the compiler-error.
}
void loop() { // put your main code here, to run repeatedly:
} `
best regards
Stefan