Hi,
I'm trying to understand how to transmit data via UART using the following function.
HAL_UART_Transmit(&huart3, msg , 6 ,1000);
HAL_Delay(500);
This function takes the following parameters:
Parameter 1: &huart3 (It's the handler of the UART 3 on STM32F7 Nucleo)
Parameter 2: msg (It's the data I want to transmit. It's an array of 6 characters)
Parameter 3: 6 (Size of the data)
Parameter 4: 1000 (Timeout)
However, what I don't understand is the timeout. A timeout of 1000 mean 1000 ms = 1 sec. What's the purpose of this parameter?
I'm trying to understand how to transmit data via UART using the following function.
HAL_UART_Transmit(&huart3, msg , 6 ,1000);
HAL_Delay(500);
This function takes the following parameters:
Parameter 1: &huart3 (It's the handler of the UART 3 on STM32F7 Nucleo)
Parameter 2: msg (It's the data I want to transmit. It's an array of 6 characters)
Parameter 3: 6 (Size of the data)
Parameter 4: 1000 (Timeout)
However, what I don't understand is the timeout. A timeout of 1000 mean 1000 ms = 1 sec. What's the purpose of this parameter?