This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

While Do loop with delay
#1
Hello.

Since the code below floods my KNX bus, i want to have a delay between each loop. The os.sleep in the code below does not work. Can anyone explaine how i can delay this loop?


while Variable1 == true
do
  Variable2 :write(true)
  os.sleep (10)
end
BR
Kai-Roger
Reply


Messages In This Thread
While Do loop with delay - by Kai-Roger - 02.04.2021, 11:41
While Do loop with delay - by Tim - 02.04.2021, 11:49
RE: While Do loop with delay - by Kai-Roger - 02.04.2021, 12:17
While Do loop with delay - by Tim - 02.04.2021, 12:19
RE: While Do loop with delay - by Kai-Roger - 02.04.2021, 12:32
RE: While Do loop with delay - by admin - 02.04.2021, 12:26
While Do loop with delay - by Tim - 02.04.2021, 12:33
RE: While Do loop with delay - by Kai-Roger - 02.04.2021, 12:36
While Do loop with delay - by Tim - 02.04.2021, 12:37
RE: While Do loop with delay - by Kai-Roger - 02.04.2021, 12:40

Forum Jump: