Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] OPC-UA connectivity status

I think the only thing you can really do right now is add a SessionActivityListener to OpcUaClient and get notified when the session goes active or inactive.

On Mon, May 24, 2021 at 6:07 AM RB, Pramod Kumar <pramodkumar.rb@xxxxxxxxxxxxxxxx> wrote:

Hi team,

 

Currently I am using following code after creating opc-ua client but this will not handle if the connectivity is re-established.

 

client.getSubscriptionManager().addSubscriptionListener(new UaSubscriptionManager.SubscriptionListener() {

                                 @Override

                                 public void onKeepAlive(UaSubscription subscription, DateTime publishTime) {

                                         // set status opc-ua server connected

                                 }

 

                                 @Override

                                 public void onPublishFailure(UaException exception) {

                                    //set status as opc-ua server disconnected

                                }             

                             });

 

Regards,

Pramod

 

From: RB, Pramod Kumar
Sent: Sunday, May 23, 2021 9:27 PM
To: milo-dev@xxxxxxxxxxx
Subject: OPC-UA connectivity status

 

Hi Team,

 

How to get the OPC-UA Server connectivity status from OPC-UA client, I looking for right way to identify opc-ua server connectivity state (Not connected, Connected, Disconnected) to indicate status on OPC-UA client software.

 

Regards,

Pramod

_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev

Back to the top