12.09.2019, 07:55
Hello,
It's possible to send value only when this value is > x like :
Sometimes i have error :
Resident script:6: attempt to compare number with string
stack traceback:
Thanks.
B.R.
It's possible to send value only when this value is > x like :
Code:
require('bacnet')
for i = 1, 14 do
id = 16000 + i
value = bacnet.readvalue(id, 'analog value', 1) -- Prise de la temp. Ambiante
if value > 7 then
grp.checkwrite('5/2/' .. i, value)
end
end
Sometimes i have error :
Resident script:6: attempt to compare number with string
stack traceback:
Thanks.
B.R.