13.11.2020, 09:56
(31.07.2020, 08:35)admin Wrote: You need to call step for it to receive data. You should also define callback before setting it.Hello Admin,
Code:if not lb then
lb = require('localbus').new(1)
function groupcallback(event)
log(event)
if event.dst == '0/2/1' then
local value = knxdatatype.decode(event.datahex, dt.uint16)
log(value)
end
end
lb:sethandler('groupwrite', groupcallback)
lb:sethandler('groupread', groupcallback)
lb:sethandler('groupresponse', groupcallback)
end
lb:step()
can I ask you for documentation for localbus library?
We are confusing what happens with queue if is too long?
Can get somehow batch of e.g. ten telegrams in one step?
Can we filter somehow range of group addresess to listen?
What is return value of lb.step?
Thanks a lot!