05.01.2022, 08:33
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
Ctrl+F5