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.

localbus
#1
hi , i am trying to work with localbus but i don't receive any logs from the groupcallback  function, i want to monitor several obj in a resident script.
in the attached i can see the handlers table but also udp{unconnected} maybe this is my problem ??

Code:
lb = require('localbus').new()

lb:sethandler('groupwrite', groupcallback)
lb:sethandler('groupread', groupcallback)
lb:sethandler('groupresponse', groupcallback)

log(lb)

function groupcallback(event) 
 
  log(event)
 
  if event.dst == '0/2/1' then   
    local value = knxdatatype.decode(event.datahex, dt.uint16)   
    log(value)
   
  end
end
many thanks
Reply


Messages In This Thread
localbus - by benanderson_475 - 31.07.2020, 06:12
RE: localbus - by fleeceable - 31.07.2020, 08:33
RE: localbus - by admin - 31.07.2020, 08:35
RE: localbus - by benanderson_475 - 01.08.2020, 11:55
RE: localbus - by Svanda - 13.11.2020, 09:56
RE: localbus - by admin - 13.11.2020, 12:40

Forum Jump: