You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use OpcUaClient::addSessionActivityListener to be notified when the session goes active/inactive.
There is no direct isConnected method because the client is, in theory, transport agnostic, and transports like HTTP or a future UDP-based tranpsort wouldn't ever be "connected" like a TCP connection would be. So instead the library reports whether you have an active session or not.
Once you call OpcUaClient::connect the library will always be working to stay connected with an active session, you are not required to do anything other than add a SubscriptionListener via UaSubscriptionManager::addSubscriptionListener so that you can re-create subscriptions after the client reconnects if the onSubscriptionTransferFailed callback is invoked.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to know the connection status like
opcUaClient.isConnected()
.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions