19.11.2021, 09:45
Openrb, maybe you can consider creating eibd singleton which allows simple use it in scripts or apps?
e.g.
Such solution would simplify for the user this interface and could be more lightweight than creating separate deamons in separate scripts.
I know that preparing reliable solution for this task could be not so easy but you have all tools and this would simplify some examples, add some order and structure and would be easier to use especially for not advanced users.
Maybe you could introduce some new module into UI (like Scenes) for managing clients and their configurations (listened adressList, tagLists etc.) and in the script the user could only pass info which client he want use and pass eventListener to it and use .step() method?
e.g.
Code:
if not client then
client = new EibdClient(listenerId, addressList, tagList, eventListener)
// or maybe something like this
client = new EibdClient(clientId, eventListener)
end
client.step()
Such solution would simplify for the user this interface and could be more lightweight than creating separate deamons in separate scripts.
I know that preparing reliable solution for this task could be not so easy but you have all tools and this would simplify some examples, add some order and structure and would be easier to use especially for not advanced users.
Maybe you could introduce some new module into UI (like Scenes) for managing clients and their configurations (listened adressList, tagLists etc.) and in the script the user could only pass info which client he want use and pass eventListener to it and use .step() method?
Done is better than perfect