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.

eibd singleton
#1
Openrb, maybe you can consider creating eibd singleton which allows simple use it in scripts or apps?


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
Reply


Messages In This Thread
eibd singleton - by buuuudzik - 19.11.2021, 09:45
RE: eibd singleton - by admin - 19.11.2021, 15:22
RE: eibd singleton - by buuuudzik - 19.11.2021, 16:25

Forum Jump: