16.03.2022, 09:20
Resident script with sleep time set to 0. It will log all bus messages in hex format.
Code:
if not canxdali then
canxdali = require('applibs.canxdali')
canxdali.getlistener(1) -- 1 second timeout
canxdali.sethandler('busdata', function(msg)
local data = msg.data
loghex(data)
end)
end
canxdali.step()