CrazYoshi / ebusdpy

ebusd python integration library
MIT License
2 stars 3 forks source link

Implementation which doesn't open/close the connection each time #3

Open andr2000 opened 5 years ago

andr2000 commented 5 years ago

When querying lots of parameters or doing polling it could be costly to open and close the socket each time. It would be great if API exists which could allow the following scenario:

  1. Open the socket
  2. Read/write multiple times through the same sock
  3. Close the socket at the end

This could be utilized by Home Assistant for example, which could then read multiple sensors using the same socket.