Imagine you're not using an STM32, and just code it in C, perhaps trying building and understanding the equivalent code on a PC?
Do you understand how data is stored in memory?
Do you understand how to do decimal to/from binary, from first principles?
An array[3] of what?
int foo = 1234;
HAL_UART_Transmit(hUART, (uint8_t*)&foo, sizeof(foo), 100); // Send the bytes behind an int
int array[3] = { 1, 2, 3};
HAL_UART_Transmit(hUART, (uint8_t*)array, sizeof(array), 100); // Send the bytes behind an int array
You looking for itoa() ?
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..