[ 
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<UaSubscription> 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
> <routes xmlns="http://camel.apache.org/schema/spring"; >
>      <route id="sensor">
>         <from 
> uri="milo-client:tcp://192.168.0.2:4840?samplingInterval=50&node=RAW(ns=4;i=12)"/>
>          <process ref="set-opc"/>
>          <setBody><simple>${in.body}</simple></setBody> 
>          <to uri="stream:out"/>
>      </route>
>  </routes>
> Thanks
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to