//This is the format that data is being sent in sprintf(str, "ACTUALTEMP %d\n",actual_temp); //send characters to a string bt.write(str, strlen(str)); //write contents of a string to the UART ThisThread::sleep_for(100ms); sprintf(str, "SETPOINTTEMP %d\n",setpoint_temp); //send characters to a string bt.write(str, strlen(str)); //write contents of a string to the UART ThisThread::sleep_for(100ms); sprintf(str, "HEATINGOUTPUT %.1f\n",heating_output); //send characters to a string bt.write(str, strlen(str)); //write contents of a string to the UART ThisThread::sleep_for(100ms); sprintf(str, "COOLINGOUTPUT %.1f\n",cooling_output); //send characters to a string bt.write(str, strlen(str)); //write contents of a string to the UART ThisThread::sleep_for(100ms);