09.08.2019, 06:34
You can use for loop and checkwrite which will not send the same value again.
Code:
require('bacnet')
for i = 2, 11 do
id = 16000 + i
value = bacnet.readvalue(id, 'binary value', 8) -- Prise du statut Fenetre
grp.checkwrite('5/3/' .. i, value)
end