I would like to use zwave devices polling interval to check if I have some radio jamming.
I Actually use that piece of code (this is an example) :
[code]for i = 1, 20 do
local j = luup.variable_get(“urn:micasaverde-com:serviceId:ZWaveNetwork1”, “LastError”, 1)
if (j == “Poll failed”) then
luup.log(“Aie aie aie aie aie aie aie aie aie aie”)
luup.variable_set(“urn:micasaverde-com:serviceId:ZWaveNetwork1”, “LastError”, “”, 1)
end
luup.sleep(2000)
end[/code]
Is there a proper way to do that task (without using luup.wget) ?
Thanks.