I'm reading values from 3 different sensors and I want to send those 3 variables to an android app through bluetooth.
I was told to create a string with those 3 values, separated by a delimiter (in my case, $), but how can I do that?
If I try to compile this, it returns "invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'".
Do you want to send the text representation of the numbers in mappedMean, mappedMean2, and mappedMean3, or do you want to send them as binary data? Converting a byte variable to a char variable will not convert it to ASCII text.
The simple method of sending the numbers as text, separated by delimiters, is to just print everything separately. Do note that you are not sending any type of line-ending character or delimiter, commonly a line-feed or carriage-return would be send at the end to let the receiving app know the line was complete.