We are using Crossworks IDE to run freeRTOS in C++. Here, we are sending data via serial com using "HAL_UART_Transmit" built in STM32_HAL function. We want to send Sensor data via serial com to external device.
here is an exmaple format:
float humiditySensorValues[2];
uint8_t buffer[100] = {"Temperature = ? \r\n"} ;
HAL_UART_Transmit(&husart3, buffer, sizeof(buffer), HAL_MAX_DELAY);
In the above code we want to replace "? -> humiditySensorValues[0]" and send the data.
where humiditySensorValues[0] contains updated temperature data value in degrees.
Any suggestion to resolve the above issue would be much appreciated.