I am getting an int value from one of the analog pins on my Arduino. How do I concatenate this to a String and then convert the String to a char[]?
It was suggested that I try char msg[] = myString.getChars();, but I am receiving a message that getChars does not exist.
const char * msg = myString.c_str();. UnliketoCharArray(),c_str()is a zero-copy operation, and zero-copy is a good thing on memory-constrained devices.