Missing imports after upgrading from 0.6.3 to 1.0.1 #1511
Replies: 2 comments 5 replies
-
I'm sorry but there is no migration guide or anything like that. There were significant changes to the client subscription API for 1.0. The best place to look right now is at the current examples:
In 0.6.x there was kind of two separate Subscription APIs - OpcUaSubscriptionManager, OpcUaSubscription, OpcUaMonitoredItem were a little lower level, and the "Managed" API, ManagedSubscription, etc... were a little higher level. Neither were particularly good or easy to use. This PR introducing the new Subscription API talks about it a little bit. It will not be as simple as updating imports. |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm now using version 1.0.1 of the Milo SDK, and I noticed that the example code does not seem to match the current API for the OpcUaSubscription class. Specifically: The constructor new OpcUaSubscription(client) used in the example does not exist in version 1.0.1. The actual constructor requires multiple parameters: public OpcUaSubscription( Additionally, the method call subscription.create() also does not exist in the current implementation of OpcUaSubscription. It looks like the example might be outdated. Could you please clarify which version the example targets, or if there's a newer recommended way to handle subscriptions and monitored items with the current public API? Thanks for the great work on Milo! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I migrated my project from version 0.6.7 to 1.0.1, and I noticed that several import paths are no longer available. Specifically, I couldn't find the following packages or classes:
import org.eclipse.milo.opcua.sdk.client.api.subscriptions...
import org.eclipse.milo.opcua.sdk.client.api.UaSession
import org.eclipse.milo.opcua.sdk.client.api.config...
import org.eclipse.milo.opcua.stack.client.DiscoveryClient
Could you please clarify:
Have these packages been removed or relocated in version 1.0.1?
What are the new equivalents or recommended alternatives for these classes?
Is there a migration guide or changelog that details these structural changes?
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions