27.07.2018, 10:29
Do you mean receiving one byte backwards frame as a reply to a forward frame? That's already implemented for all commands that have "reply from slave" set in commands table: http://openrb.com/docs/dali.htm
As for raw telegrams, it will implemented like this:
As for raw telegrams, it will implemented like this:
Code:
data = string.char(0x12, 0x34, 0x56) -- either 2 or 3 bytes
-- no reply required
dalicmd('internal', 'raw', { data = data })
-- query command
res, err = dalicmd('internal', 'raw', { data = data, reply = true })
if res then
log(res:byte())
end