Open DionisisBozikis opened 4 years ago
i have found a walk-around by making a daemon thread that keeps alive the connection with polling. just a get_value() every 1 minute. But is there a more "pretty" solution ??
you should of course polle a node for connection monitoring but thats a different topic... typicaly in a subscription there should be an publish request from your client and a following publish response from your opcua server (you can check it with wireshark + filter opcua protokoll) most of the time you see then whats going on and when it breaks! any other way is just guessing... code looks ok!
i eventually subscribed to a watch dog counter that changes every now and then to keep alive the connection. i will keep the issue up for some days in case someone has any idea and then i will close it. Thanks you very much for your quick response!
More info is needed.
Hello, I am having the problem described in the title. Basically if none of the monitored node iDs changes its value for longer than 2 minutes, after that the Subscription script stops working. Am i doing something wrong? i get no errors. if i restart the script it works normaly, catches thelast data change, and if it idle again for longer than 2 minutes, it stops working.
here is my code: