08.08.2022, 06:08
So, is this correct to write an INT64 into 4 registers?
value = event.getvalue()
raw = knxdatatype.encode(value, dt.float32).dataraw
r1 = raw:byte(1)
r2 = raw:byte(2)
r3 = raw:byte(3)
r4 = raw:byte(4)
register = 3204
mbetregisters(register, r4)
mbetregisters(register+1, r3)
mbetregisters(register+2, r2)
mbetregisters(register+3, r1)
value = event.getvalue()
raw = knxdatatype.encode(value, dt.float32).dataraw
r1 = raw:byte(1)
r2 = raw:byte(2)
r3 = raw:byte(3)
r4 = raw:byte(4)
register = 3204
mbetregisters(register, r4)
mbetregisters(register+1, r3)
mbetregisters(register+2, r2)
mbetregisters(register+3, r1)