I would like to print to the serial monitor three variables, separately by a single space. I have attempted to do it this way but i get an error.
Serial.println(gx + " " + gy + " " + gz);
The error when compiling:
exit status 1 invalid operands of types 'const char*' and 'const char ' to binary 'operator+'
I don't understand what i'm doing wrong. How can i print these 3 variables with a single serial.println?