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.

Writing setpoint 8bytes
#2
Here's how to combined 4 separate object values into a single object:
Code:
addrs = { '1/1/1', '1/1/2', '1/1/3', '1/1/4' }
value = ''

for _, addr in ipairs(addrs) do
  val = grp.getvalue(addr)
  enc = busdatatype.encode(val, dt.float16)
  value = value .. enc.dataraw
end

grp.write('1/1/5', value, dt.raw)

This will work over KNX/IP but not over BACnet. Each BACnet datapoint can only store a single value.
Reply


Messages In This Thread
Writing setpoint 8bytes - by chriscroko - 21.01.2021, 07:46
RE: Writing setpoint 8bytes - by admin - 21.01.2021, 08:34

Forum Jump: