Replies: 1 comment 10 replies
-
We have sample here: https://github.com/FreeOpcUa/opcua-asyncio/blob/master/examples/client-reconnect.py |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Sorry for annoyment because maybe my question is a bit dumb... But I've worked now for three weeks with this wonderful library and I'm starting to get really used to !
There's still a point I can't figure out, even by wandering around the source codes:
How and where is the automatic reconnection handled ?
In fact, I've observed that there's the _monitor_server_loop method that checks whether server is alive (and therefore also connection), and I've used it to catch connection loss exceptions in my own API using the asyncua library. But what I couldn't get ahold of is how is it that when I simply reconnect my network, the connection to the server is reinitialized and how could I get this information inside my API code ?
Hope this is clear enough, if not, please let me know if I should provide any further informations !
Thanks
Rémy
Beta Was this translation helpful? Give feedback.
All reactions