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