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

Multi OPC Server and auto-reconnect #12

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Maddin-619
Copy link

For my use case I need to log data form diffrent opc ua server so I made a few changes that you can config multiple opc ua endpoints with their datapoints you want to log in the config file.

When a opc ua server restarts the connection should be reestablished automatically with all the monitored itmes. The opc ua npm package unfortunately dosen't do that. I tested with python-opcua Server. The solution is a little bit hacky: When the opc ua server comes back up the client object gets newly initialized.

@visued
Copy link

visued commented Jul 25, 2019

Reconnection no work for me.
Freeze in this message:

Timeout .... waiting for response for PublishRequest { /RequestHeader/

authenticationToken /* NodeId */: ns=0;b=0e28be824eff8be6ad9a2f71c0e870394c530565d9e50ff321bf04dfefda7cd9

timeStamp /* UtcTime */: 2019-07-25T16:51:14.060Z

requestHandle /* IntegerId */: 747 0x2eb

returnDiagnostics /* UInt32 */: 0 0x0

auditEntryId /* UAString */:

timeoutHint /* UInt32 */: 60000 0xea60

additionalHeader /* ExtensionObject */: null

};

@Maddin-619
Copy link
Author

Can you give me more information. Which server? Is it freezing when loosing connection or when Server is up again?
This reconnect mechanism listens on the event when server gets back up and than initializes new client connection.
I will check it tomorrow. Maybe there is now a better solution provided by the opc ua stack. Last year there was no way to get the monitored items automaticly reconnecting.

@visued
Copy link

visued commented Jul 28, 2019

Can you give me more information. Which server? Is it freezing when loosing connection or when Server is up again?
This reconnect mechanism listens on the event when server gets back up and than initializes new client connection.
I will check it tomorrow. Maybe there is now a better solution provided by the opc ua stack. Last year there was no way to get the monitored items automaticly reconnecting.

Free when loosing connection...
I runing in container docker, when server OPCUA restart node logger freeze, i need restart container for node logger running normally.

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

Successfully merging this pull request may close these issues.

None yet

2 participants