Realize Connection and object exists check
-
Hi
I defined cov subscribe. I can see change of value in covNotificationReceived method.localDevice.send(remoteDevice, new SubscribeCOVRequest(new UnsignedInteger(4), new ObjectIdentifier(ObjectType.analogValue, 1),, Boolean.FALSE, null)).get();
When The application running, remote device can be shutdown or connection broken or Object can be deleted on remote device. How can be checked this situations in the application. How can be realized in the application.
-
Hi cenk,
Your COV subscription needs to be resent periodically to be in conformance to the spec. Is failure to receive an ACK to the COV subscription sufficient, or do you need to know sooner than your COV resubscribe period? If more often, you'll probably need to make additional requests to the remote device, to see if it is responding.
-
Hi,
So sorry I am not sure understand exactly. To check that everything is ok, I have to remove subscription and subscription again periodically? For example each 1 min
For removing subscriptionlocalDevice.send(remoteDevice, new SubscribeCOVRequest(new UnsignedInteger(4), new ObjectIdentifier(ObjectType.analogValue, 1), null null)).get();
And after subscription again
localDevice.send(remoteDevice, new SubscribeCOVRequest(new UnsignedInteger(4), new ObjectIdentifier(ObjectType.analogValue, 1),, Boolean.FALSE, null)).get();
Is it ok?
Is there any example for this issue
Thankyou for your help.
-
I am saying the only way to detect a spontaneous disconnection, which I think it what you're asking, is to send a request of some sort and have it time out.