B4R Question loop, timeout and AsyncStreams

Mostez

Well-Known Member
Licensed User
Longtime User
Hello,
in B4R code (Arduino Mega) there is a loop check for a counter to reach count i.e. 10, before calling loop I enabled a timer to start the count to break the loop (calculate timeout). at the same time there is an AsyncStreams sub receiving data from serial device. the question is, do these two methods conflict to each other, and what is the best method to handle timeout (for example wait for user to enter password, otherwise program branches to another sub)

thanks
 
Top