So far I have:
float temp = 22.45; Serial3.print(temp + "\r");
I knew that code would not work from the getgo.
I am attempting to concatenate the
temp variable and a carriage return. The board that I will be communicating with will only accept a carriage return at the end and not a new line, otherwise I would have used a println(). How do I combine the float value and a carriage return and send it via Serial3?
char tempAr; String tempAsString; String serialData; dtostrf(temp,1,2,tempAr); tempAsString = String(tempAr); serialData = tempAsString + "\r"; Serial3.print(serialData);
The above code seems to work; however, it is still rough around the edges and I will have to change the width and precision values in the dtostrf per decimal place(ones, tens, hundreds);