[jira] [Commented] (CAMEL-14495) OPC UA Client samplingInterval parameter seems not take any effect
[ https://issues.apache.org/jira/browse/CAMEL-14495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17066533#comment-17066533 ] Dmitry Volodin commented on CAMEL-14495: [~evergreen] do you need to configure hardcoded requestedPublishingInterval? samplingInterval and requestedPublishingInterval are different parameters: [https://stackoverflow.com/questions/41183394/what-does-the-requestedpublishinginterval-in-milo-mean] > OPC UA Client samplingInterval parameter seems not take any effect > -- > > Key: CAMEL-14495 > URL: https://issues.apache.org/jira/browse/CAMEL-14495 > Project: Camel > Issue Type: Improvement > Components: camel-milo >Affects Versions: 2.25.0 >Reporter: Hobbert >Priority: Minor > Labels: help-wanted > Fix For: 3.2.0 > > > When I set the *samplingInterval* parameter on a Milo OPC UA Client route, > the interval not changes on the real OPC application! Remains 1000 mili > seconds even after configuring!! Can anyone confirm that?? > Heres my route > http://camel.apache.org/schema/spring"; > > > uri="milo-client:tcp://192.168.0.2:4840?samplingInterval=50&node=RAW(ns=4;i=12)"/> > > ${in.body} > > > > Thanks > > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-14495) OPC UA Client samplingInterval parameter seems not take any effect
[ https://issues.apache.org/jira/browse/CAMEL-14495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17040655#comment-17040655 ] Claus Ibsen commented on CAMEL-14495: - Thanks for diving into this. So you can add a new option to the MiloClientConfiguration class and then use that in the code you found > OPC UA Client samplingInterval parameter seems not take any effect > -- > > Key: CAMEL-14495 > URL: https://issues.apache.org/jira/browse/CAMEL-14495 > Project: Camel > Issue Type: Bug > Components: camel-milo >Affects Versions: 2.25.0 >Reporter: Hobbert >Priority: Minor > > When I set the *samplingInterval* parameter on a Milo OPC UA Client route, > the interval not changes on the real OPC application! Remains 1000 mili > seconds even after configuring!! Can anyone confirm that?? > Heres my route > http://camel.apache.org/schema/spring"; > > > uri="milo-client:tcp://192.168.0.2:4840?samplingInterval=50&node=RAW(ns=4;i=12)"/> > > ${in.body} > > > > Thanks > > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-14495) OPC UA Client samplingInterval parameter seems not take any effect
[ https://issues.apache.org/jira/browse/CAMEL-14495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17039604#comment-17039604 ] Hobbert commented on CAMEL-14495: - I think I have discovered the point Exploring the Milo library, I found a *createsubscription* parameter that is set to 1000 ms of requesting subscription interval {quote}// create a subscription @ 1000ms UaSubscription subscription = client.getSubscriptionManager().*createSubscription(1000.0)*.get();{quote} [https://github.com/eclipse/milo/blob/master/milo-examples/client-examples/src/main/java/org/eclipse/milo/examples/client/SubscriptionExample.java] Looking for the parameter over the milo library, it confirms the idea: {quote}* @param *requestedPublishingInterval* the requested publishing interval of the subscription. * @return a \{@link CompletableFuture} containing the \{@link UaSubscription}. */ CompletableFuture createSubscription(double *_requestedPublishingInterval_*);{quote} [https://github.com/eclipse/milo/blob/5ed4edad57be181b3b0d08fb124e252cf2decc56/opc-ua-sdk/sdk-client/src/main/java/org/eclipse/milo/opcua/sdk/client/api/subscriptions/UaSubscriptionManager.java] And when I looked at this parameter in the Camel, seems that its really fixed at 1000 ms {quote}final UaSubscription manager = client.getSubscriptionManager().*createSubscription(1_000.0)*.get();{quote} [https://github.com/apache/camel/blob/b78d16f720b7ee54b16bde820d9439b56e8fea7d/components/camel-milo/src/main/java/org/apache/camel/component/milo/client/internal/SubscriptionManager.java] I believe that this parameter needs to be included at the Camel OPC UA Client configuration!! Anyone knows how to do that?? Thanks > OPC UA Client samplingInterval parameter seems not take any effect > -- > > Key: CAMEL-14495 > URL: https://issues.apache.org/jira/browse/CAMEL-14495 > Project: Camel > Issue Type: Bug > Components: camel-milo >Affects Versions: 2.25.0 >Reporter: Hobbert >Priority: Minor > > When I set the *samplingInterval* parameter on a Milo OPC UA Client route, > the interval not changes on the real OPC application! Remains 1000 mili > seconds even after configuring!! Can anyone confirm that?? > Heres my route > http://camel.apache.org/schema/spring"; > > > uri="milo-client:tcp://192.168.0.2:4840?samplingInterval=50&node=RAW(ns=4;i=12)"/> > > ${in.body} > > > > Thanks > > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CAMEL-14495) OPC UA Client samplingInterval parameter seems not take any effect
[ https://issues.apache.org/jira/browse/CAMEL-14495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17034460#comment-17034460 ] Claus Ibsen commented on CAMEL-14495: - If you debug the code then the sampling interval ought to be set, have you tried that? > OPC UA Client samplingInterval parameter seems not take any effect > -- > > Key: CAMEL-14495 > URL: https://issues.apache.org/jira/browse/CAMEL-14495 > Project: Camel > Issue Type: Test > Components: camel-milo >Affects Versions: 2.25.0 >Reporter: Hobbert >Priority: Major > > When I set the *samplingInterval* parameter on a Milo OPC UA Client route, > the interval not changes on the real OPC application! Remains 1000 mili > seconds even after configuring!! Can anyone confirm that?? > Heres my route > http://camel.apache.org/schema/spring"; > > > uri="milo-client:tcp://192.168.0.2:4840?samplingInterval=50&node=RAW(ns=4;i=12)"/> > > ${in.body} > > > > Thanks > > -- This message was sent by Atlassian Jira (v8.3.4#803005)