You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
stringThree = stringOne + millis();
?String
objects like that because they overload the plus (+) operator. String literals in C/C++ (anything in double quotation marks"like this"
) work differently. You can read more about the difference here: arduino.cc/en/Reference/StringString
object was false, it creates a null-terminated character array, and theString
type also has an overload on the=
operator to coerce achar[]
to aString
.String
object by doing this:String("test")
. It uses more memory than a string literal alone though, so it's important to be careful how you use it.