This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Support Request on Lua Scripting
#8
You can send ping several times like this. You can also increase the sleep time between each device check from 0.5 to a higher value if needed.
Code:
for i = 1, 3 do
  result = knxlib.ping(dev.address)
  if result then
    break
  else
    os.sleep(1)
  end
end

You can get current date/time by calling os.date(). You can use this example to store events into a storage log: https://forum.logicmachine.net/showthread.php?tid=350
A separate scheduled script can send event log data to email once per day.
Reply


Messages In This Thread
RE: Support Request on Lua Scripting - by admin - 21.02.2022, 13:44

Forum Jump: