Code: Select all
execute = function(dz, device)
dz.openURL({
url = 'http://192.168.199.20:8080/json.htm?type=command¶m=switchlight&idx=71&switchcmd=On',
method = 'GET',
callback = ''
}).afterSec(30)
end
dz.cancelQueuedCommands()
or
dz.openUrl({...}).cancelQueuedCommands()
give an error.