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
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