The right-hand-side expressions in these statements do not have "String" types, and so "+" does not work for concatenation. Converting the literal (C) strings to Arduino/C++ Strings should solve one set of problems:
Then you should see the various missives about how Arduino Strings cause dangerous memory fragmentation, and how it shouldn't be necessary to build a single large string before using print() anyway...
(BTW: Nice job distilling your code example down to short code that clearly demonstrates your problem!)
westfw:
The right-hand-side expressions in these statements do not have "String" types, and so "+" does not work for concatenation. Converting the literal (C) strings to Arduino/C++ Strings should solve one set of problems:
Then you should see the various missives about how Arduino Strings cause dangerous memory fragmentation, and how it shouldn't be necessary to build a single large string before using print() anyway...
(BTW: Nice job distilling your code example down to short code that clearly demonstrates your problem!)