31.08.2021, 07:51
Strange, I wonder what am I doing wrong.
I'm using this, in a resident script with sleep time 0:
And I get nothing in the logs, error logs, alerts... any ideas?
I'm using this, in a resident script with sleep time 0:
Code:
-- KNX TP connectivity check
function statushandler(status)
if status == 0x00 then
log('KNX connection check succesful')
elseif status == 0xFF then
alert('KNX is disconnected')
end
log('status is ' .. tostring(status))
end
client = require('localbus').new(1)
client:sethandler('status', statushandler)
client:step()
And I get nothing in the logs, error logs, alerts... any ideas?
(31.08.2021, 06:36)forsterm Wrote: Hi,
I tested it with Wiser for KNX with firmware 2.6.2 and it was working for me.
You have to use resident script with sleep time 0.
(30.08.2021, 20:27)morkovka Wrote:(22.02.2017, 01:47)rocfusion Wrote:I tried this function and it's not working in the current version of Wiser - does anyone have a current working version of this function to check the local KNX TP link?(21.02.2017, 08:35)admin Wrote: Yes, via a resident script:
Code:if not client then
function statushandler(status)
if status == 0x00 then
-- KNX Connected
elseif status == 0xFF then
-- KNX Disconnected
end
end
client = require('localbus').new(1)
client:sethandler('status', statushandler)
end
client:step()
Thank you. I added the function into the group address status script. From before.
Tried in a resident script and scheduled script (I prefer scheduled script), anyway the statushandler() function never gets called.
Thank you!
Morkov
Morkov