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 })
clientethandler('groupwrite', writehandler)
clientethandler('groupresponse', writehandler)
clientethandler('groupread', readhandler)
end
-- handle knx
clienttep()
But it will not work ..
When I, from ETS, use write to, my handler cant feel it..
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 })
clientethandler('groupwrite', writehandler)
clientethandler('groupresponse', writehandler)
clientethandler('groupread', readhandler)
end
-- handle knx
clienttep()
But it will not work ..
When I, from ETS, use write to, my handler cant feel it..