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.

grp.checkwrite and supported datatypes
#8
Hello,
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.
Reply


Messages In This Thread
RE: grp.checkwrite and supported datatypes - by Gadjoken - 12.09.2019, 07:55

Forum Jump: