python-eq3bt icon indicating copy to clipboard operation
python-eq3bt copied to clipboard

Keep connection alive

Open fhempy opened this issue 5 years ago • 2 comments

Hi,

have your tried to connect to eq3bt only once and keep the connection alive? I don't think that it would drain the battery too much. Would you mind adding such a functionality to python-eq3bt?

fhempy avatar Oct 05 '20 21:10 fhempy

Hi, I haven't tried to see if these devices keep on notifying about updates if you keep it open (but I'd expect it to do so). The problem is not just battery draining (which is likely causes), but it will also block other accesses to the device.

Anyway, I'm open for PRs that add optional support for continuous listening mode. I'm not going to work on that myself, as I don't use these devices anymore.

rytilahti avatar Oct 06 '20 13:10 rytilahti

Thanks for your reply. I created a PR with some updates.

It would be great if you could release a new version to pip as well. Thx!

fhempy avatar Oct 06 '20 18:10 fhempy