This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

DALI 2.0 motion detector
#6
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()
Reply


Messages In This Thread
DALI 2.0 motion detector - by tom77 - 14.03.2022, 21:02
RE: DALI 2.0 motion detector - by admin - 15.03.2022, 09:12
RE: DALI 2.0 motion detector - by tom77 - 15.03.2022, 10:08
RE: DALI 2.0 motion detector - by admin - 15.03.2022, 10:11
RE: DALI 2.0 motion detector - by tom77 - 15.03.2022, 17:25
RE: DALI 2.0 motion detector - by admin - 16.03.2022, 09:20
RE: DALI 2.0 motion detector - by tom77 - 16.03.2022, 10:20
RE: DALI 2.0 motion detector - by admin - 29.03.2022, 10:24

Forum Jump: