Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i reconnect if the connection is lost? #14

Open
THE-KONDRAT opened this issue May 18, 2024 · 1 comment
Open

How can i reconnect if the connection is lost? #14

THE-KONDRAT opened this issue May 18, 2024 · 1 comment

Comments

@THE-KONDRAT
Copy link

I use this library with blender bpy, and sometimes the rendering (which is a synchronous operation) exceeds the value of KeepAliveInterval. In this case, I want to try to restore the connection.
What should i do?

@THE-KONDRAT THE-KONDRAT changed the title How can i setup action on reconnect? How can i reconnect if the connection is lost? May 18, 2024
@olalid
Copy link
Contributor

olalid commented May 21, 2024

In pyeasee I just put the code inside a try-except and a loop around it.
So far that seems to work fine. See here:
https://github.com/nordicopen/pyeasee/blob/bceeb06e05cbf13908cf6492667633ed0bf9c62d/pyeasee/easee.py#L284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants