06.02.2023, 21:46
(06.02.2023, 06:19)admin Wrote: Resident script with 0 sleep time. You can check the frame table fields to have different reaction on different button presses.
Make sure that you have both latest CANx and CANx-DALI apps with DALI2 message parsing support.Code:if not canxdali then
function callback(frame)
log(frame)
end
canxdali = require('applibs.canxdali')
canxdali.sethandler('busdata', callback)
end
canxdali.step()
Thanks for your quick answer.
I'm getting the frame in the log but still not understand is any function which exist to take value from this? Types are described here https://openrb.com/docs/canxdali-dali2.htm , but it is not entirely clear to me which function is needed to be used to extract them.
Or need to write own function which take a value from this frame?