Solved
How to convert array[3] to int and Transmit int via usatr (HAL_UART_Transmit). int y = atoi(str); converting char to int >> didn't work with me
..
..
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() ?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.