Thanks admin! It works perfectly! Great implementation!
Is it possible to explain shortly why different modules were used in first and your solution? Are there any differences in performance or is it just that in second case we want to loop in predefined time intervals?
Is it possible to explain shortly why different modules were used in first and your solution? Are there any differences in performance or is it just that in second case we want to loop in predefined time intervals?
Code:
-- Implementation with module 'genohm-scada.eibdgm'
--------------------------------------------------
if not client then
require('genohm-scada.eibdgm')
-- knx group write handler
function groupwrite(event)
end
client = eibdgm:new()
client:sethandler('groupwrite', groupwrite)
end
client:step()
-- Implementation wih module 'localbus'
---------------------------------------
if not client then
function groupwrite(event)
end
client = require('localbus').new(0.1)
client:sethandler('groupwrite', groupwrite)
end
client:loop(0.2)