31.07.2020, 06:12
hi , i am trying to work with localbus but i don't receive any logs from the groupcallback function, i want to monitor several obj in a resident script.
in the attached i can see the handlers table but also udp{unconnected} maybe this is my problem ??
many thanks
in the attached i can see the handlers table but also udp{unconnected} maybe this is my problem ??
Code:
lb = require('localbus').new()
lb:sethandler('groupwrite', groupcallback)
lb:sethandler('groupread', groupcallback)
lb:sethandler('groupresponse', groupcallback)
log(lb)
function groupcallback(event)
log(event)
if event.dst == '0/2/1' then
local value = knxdatatype.decode(event.datahex, dt.uint16)
log(value)
end
end