Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] OPC UA - subscription -> wait till all subscriptions were read

Hi, I checked the code and I would like to ask if it is not problem that this way it would write to "features" every time the variable changes. (I need to wait for all values only when I am creating the subscription) I know it would work but it is unnecessary.

Jakub Znamenáček
On 10. 12. 2020 9:25 +0100, Jakub Znamenáček <znamenacekjakub@xxxxxxxxx>, wrote:
Thank you so much for quick reply, I will check it.

Jakub Znamenáček
On 8. 12. 2020 21:58 +0100, Kevin Herron <kevinherron@xxxxxxxxx>, wrote:
Jakub,

Maybe you can draw some inspiration from this: https://gist.github.com/kevinherron/e25cdecea8feb4509d970f1c9673eca0

Output:

Connected
Waiting for values...
item=NodeId{ns=2, id=0} value=Variant{value=28}
item=NodeId{ns=2, id=1} value=Variant{value=125}
item=NodeId{ns=2, id=2} value=Variant{value=25}
item=NodeId{ns=2, id=3} value=Variant{value=0}
item=NodeId{ns=2, id=4} value=Variant{value=0}
item=NodeId{ns=2, id=5} value=Variant{value=0}
item=NodeId{ns=2, id=6} value=Variant{value=0}
item=NodeId{ns=2, id=7} value=Variant{value=78}
item=NodeId{ns=2, id=8} value=Variant{value=0}
item=NodeId{ns=2, id=9} value=Variant{value=0}
Received all 10 values.

On Tue, Dec 8, 2020 at 11:05 AM Jakub Znamenáček <znamenacekjakub@xxxxxxxxx> wrote:
Hi,

I have one problem. I am subscribing to around 10 values and I need to stop the program till all subscription will update the value at least once. Is there some possibility how to implement this easily? I could put there some while loop which would stop the program but I don’t like this solution.

Thanks everyone for reply.

Jakub Znamenáček
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
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