Replies: 2 comments · 4 replies
|
Hmm, that seems like a reasonable expectation. I wonder if the I'll look into it. Seems like it could be a bug. |
|
Okay, so what I'm leaning towards is: fully decouple This means Then add public boolean isFullySynchronized() {
return syncState == SyncState.SYNCHRONIZED
&& monitoredItems.values().stream()
.allMatch(item -> item.getSyncState() == OpcUaMonitoredItem.SyncState.SYNCHRONIZED);
} |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm creating a subscription with a monitored item:
Then I'm adding a monitored item:
And finally call synchronizeMonitoredItems and log the OpcUaSubscription
The logging shows:
...synchronizeMonitoredItems for subscription: OpcUaSubscription[subscriptionId=1775131576, syncState=UNSYNCHRONIZED]
I would have expected that the syncState=SYNCHRONIZED.
Am I'm doing something wrong?
The subscription itself seems to work and I'm getting data changes.
All reactions