ou comme ceci (pas sous windows)
Code : Tout sélectionner
function sleep(n)
os.execute("sleep " .. tonumber(n))
end
commandArray = {}
if (devicechanged['fgms001_sensor']) == 'On' then
commandArray[1]={['OpenURL']='http://192.168.1.13:99/decoder_control.cgi?command=33&onestep=500&user=root&pwd=7104608a'}
sleep(10)
commandArray[2]={['OpenURL']='http://192.168.1.13:99/decoder_control.cgi?command=94&onestep=500&user=root&pwd=7104608a'}
