06.02.2023, 06:19
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()