fibaro:abort()
There are no arguments
local
a = 0
-- Infinite loop
while
true
do
-- If a is greater than 10, exit script
if
(a > 10)
then
fibaro:abort
()
end
-- Increase the value of a by 1
a = a + 1
-- Wait 1 second (1000 milliseconds)
fibaro:sleep
(1000)
end