Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
I suggest you should Try and use the xTimerCreate function to make a timer with a specific period ,you can use 1000 milliseconds for a 1 second timeout . Later you can now set the timer to call a callback function when timeout happens.
Use xTimerStart to start your time . @ifreakio
Thanks for the suggestion tho, but I am also thinking about the implementation. What if I set up the xTimer to handle the timeout, but the UART interrupt completes successfully before the timer expires? How should I handle stopping or resetting the timer in that case to avoid unnecessary callbacks or resource usage? @ucgee
@Middleware & OS
CONTRIBUTE TO THIS THREAD