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.

Unable to use the "data16" data type in Zigbee.
#2
data16 must sent as a byte array.
Try this, you might need to swap b1 and b2 if the byte order is incorrect:
Code:
local mode = event.getvalue() local b1 = bit.band(bit.rshift(mode, 8), 0xFF) local b2 = bit.band(mode, 0xFF) local data = { b1, b2 } local res, err = zb.cmdsync('setrawattribute', address, 64513, 0, data, 'data16', manufcode)
Reply


Messages In This Thread
RE: Unable to use the "data16" data type in Zigbee. - by admin - Yesterday, 07:36

Forum Jump: