In communication with a µC I need to have some delay before sending a new request for transmitting data to the µC. In the µC dialect , there is a "Wait" statement as a delay before executing the next statement. How could I implement that in B4J?
1: There is no hurry.1. Not recommended - a waste time loop
2. Recommended - a timer that is enabled at the start event and ticks after the delay period.
Yes, I agree with you, I was just suggesting as an alternate method, but the one Erel recommanded is the best.The "sleep" function looks a little difficult to implement but I will try also.