How to pause a Lua script

Hi Folks,

I’ve been trying to figure out how to pause a Lua script for a number of seconds before continuing but I’m having a heck of a job figuring it out. I’ve been though the whole Lua reference manual and there appears to be no “pause()” or “sleep()” functions like there are in other languages. I’m thinking there has to be a way to do this.

Can anyone help me out please?




luup.sleep (3000)

… will sleep for 3 seconds.

Awesome, thanks!