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.

Read RS232 send to KNX Group adress
#8
Try this script (resident, sleep time = 0) as is without changing anything and post what you get in Alerts tab:
Code:
if not port then
  require('serial')
  port = serial.open('/dev/RS232', { baudrate = 9600 })
  port:flush()
  line = ''
end

char = port:read(1, 1)
if char then
  if char == '\r' then
    line = line:trim()
    alert(line)
    line = ''
  else
    line = line .. char
  end
end
Reply


Messages In This Thread
RE: Read RS232 send to KNX Group adress - by admin - 03.02.2021, 09:03

Forum Jump: