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.
2: I know. But that needs to rewite the code and, (despite of 1), the timer always has to treat the (unknown) worst case. In many dialects we have delay instructions, so why not here?
Thanks for the delay function. Actually, I used something like that in B4A while ago -but I forgot about it...
The "sleep" function looks a little difficult to implement but I will try also.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.