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.

Log all bus traffic
#3
maybe something like this?
But how to show the datahex in readable format?

And is it possible to add a general handler, also for groupreads etc?
Code:
if not client then
  require('genohm-scada.eibdgm')

  -- handle group writes
  function eventhandler(event)
    log(event) -- later send this to mysql
    --log(knxdatatype.decode(event.datahex,?))
  end

  -- knx connection
  client = eibdgm:new({ timeout = 1 })
  client:sethandler('groupwrite', eventhandler)

  -- start-up time
  sec, usec = os.microtime()
end

-- handle knx
client:step()
Reply


Messages In This Thread
Log all bus traffic - by gjniewenhuijse - 12.04.2016, 14:21
RE: Log all bus traffic - by edgars - 15.04.2016, 08:41
RE: Log all bus traffic - by gjniewenhuijse - 19.04.2016, 14:09
RE: Log all bus traffic - by admin - 20.04.2016, 10:08
RE: Log all bus traffic - by Ruslan - 20.04.2016, 12:21
RE: Log all bus traffic - by Ruslan - 26.04.2016, 19:54

Forum Jump: