-
Notifications
You must be signed in to change notification settings - Fork 5
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
Gateway Handling OPC-UA Server Disappearance #5
Comments
Hi @Lushee-inno, Thanks for reaching out. This is something we were thinking on adding soon. We've run into issues like these in the past and we wanted to add the ability to reconnect if the connection drops for any reason. If all you want is to exit when the Gateway loses connectivity, you can provide the Thread that runs the OPC UA Client with a shutdown hook (see feature/5-propagate-shutdown-hook). We have prototyped it as follows: If the update loop runs into an issue (a However, to address your issue, I think it'd be best to provide a mechanism to reconnect if run_iterate returns |
Hi @fgaranda, Thank you very much for the reponse. Really appreciate it :) I built the Regarding the cron job suggestion you made, I already tried a similar approach (before the I totally agree with you about implementing this re-connection feature within Another question, what do you think is the future for the |
Hi Development Team,
I'm using the gateway to get data from an OPC-UA server to DDS ecosystem and found that the behavior of the gateway when the server/PLC disappears (i.e. if the power to the server gets disrupted) to be needing improvement. From my observations, when this happens, the gateway just stop the spinning of the update loop stating there was a
BadDisconnect
. But it does not neither exit the whole application OR try to reconnect to the server. This makes its very difficult to integrate the gateway to an automated system in a robust manner.I am currently looking at the code to find a way to introduce either of these features. Any suggestion will be highly appreciated.. :)
Lushee.
The text was updated successfully, but these errors were encountered: