2021-12-28 11:51 PM
2021-12-29 06:55 AM
No doubt the RF module sends bytes, not any particular data type. How you interpret those bytes on the other end is up to the receiving software. Provide a pointer to the data using a cast.
int x = 67;
HAL_UART_Transmit(huart1, (unsigned char *) &x, sizeof(x), 0);
2021-12-29 06:55 AM
No doubt the RF module sends bytes, not any particular data type. How you interpret those bytes on the other end is up to the receiving software. Provide a pointer to the data using a cast.
int x = 67;
HAL_UART_Transmit(huart1, (unsigned char *) &x, sizeof(x), 0);