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.

tag group write, only different data
#3
if you look for the object AllStatus, you'll find it's an array with all object.

You can do a loop on this array and write the value only if it's not the same

Will look something like:

for _, item in ipairs(AllStatus) do
if item.value != newvalue then
grp.write(item.address, newvalue
end
end

Edit: Admin send a reply just before my. take his Smile
Reply


Messages In This Thread
RE: tag group write, only different data - by mlaudren - 05.12.2016, 13:55

Forum Jump: