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
#3
Okey, mysql can work, good : But MSSQL ?
But to get all write-to-bus-message we need a handle-func?

I have test with:

if not client then
  require('genohm-scada.eibdgm')

  objects = grp.all()
  datatypes = {}

  for _, object in ipairs(objects) do
    datatypes[ object.id ] = object.datatype
  end

  function writehandler(event)
    log('FUNC:' .. event)

    local dpt = datatypes[ event.dstraw ]
    if dpt then
      local value = knxdatatype.decode(event.datahex, dpt)
    end
  end

  function readhandler(event)
    log('FUNC:' .. event)
  end

  client = eibdgm:new({ timeout = 1 })
  clientConfusedethandler('groupwrite', writehandler)
  clientConfusedethandler('groupresponse', writehandler)
clientConfusedethandler('groupread', readhandler)
end

-- handle knx
clientConfusedtep()

But it will not work ..

When I, from ETS, use write to, my handler cant feel it..
Reply


Messages In This Thread
Log - by zuuper - 23.01.2020, 08:31
RE: Log - by Daniel - 23.01.2020, 08:34
RE: Log - by zuuper - 23.01.2020, 10:22
RE: Log - by admin - 23.01.2020, 12:56

Forum Jump: