Thanks a lot jvdz, I overlooked this, maybe because of the the trailing get part.
I do succesfull
Code: Select all
domoticz.openURL({
url = "http://192.168.2.56/cm?cmnd=Power%20On" ,
-- method = 'GET',
-- callback = 'energyRetrieved'
})
Now I have another Q:
I do check if a device is alive using command:
Code: Select all
ping_success=os.execute('ping -c1 -w1 ' .. "192.168.2.200")
But I was advised this is not reliable due to the fact the device can be busy while pinged.
So I should ping several times with timedelay.
Now my Q: Can I give ping-command which will be delayed executed 3 times in sequence?
Thank you.
-Bart