24.10.2023, 06:45
important output:
string: lua /lib/genohm-scada/core/scripting-resident.lua 159, drops: 6908586
script 159: i checked every 10 seconds the knx bus with this script
string: lua /lib/genohm-scada/core/scripting-resident.lua 159, drops: 6908586
script 159: i checked every 10 seconds the knx bus with this script
Code:
-- resident knx connection handeler
-- check device physical address: log( knxlib.ping('2.1.1') )
if not client then
function statushandler(status)
if status == 0x00 then
-- KNX Connected
--log('connected')
require('user.nit_notify')
sendMessage('Knx bus','Knx bus hersteld.',-2)
elseif status == 0xFF then
-- KNX Disconnected
--log('not connected')
require('user.nit_notify')
sendMessage('Knx bus','Knx bus probleem, controleer de verbinding.',-2)
end
end
client = require('localbus').new(1)
client:sethandler('status', statushandler)
end
client:step()