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.

KNX/TP Error tag
#2
Hi
Try this

Code:
function check()
 local delta, wdt
   wdt = io.readfile('/tmp/tpuart.wdt') or ''
   wdt = tonumber(wdt) or 0
   delta = os.time() - wdt
 return delta <= 10
end

checktp = check()

log(checktp)
------------------------------
Ctrl+F5
Reply


Messages In This Thread
KNX/TP Error tag - by eirik - 09.03.2018, 08:58
RE: KNX/TP Error tag - by Daniel - 09.03.2018, 10:20
RE: KNX/TP Error tag - by Trond Hoyem - 08.11.2018, 07:53
RE: KNX/TP Error tag - by admin - 08.11.2018, 08:03
RE: KNX/TP Error tag - by Trond Hoyem - 08.11.2018, 08:28
RE: KNX/TP Error tag - by Daniel - 08.11.2018, 08:56

Forum Jump: