Replies: 1 comment
-
This is Kotlin, so you'll have to squint a little, but when creating these Nodes in our server I use a custom private fun redundancyNodeFactory(): NodeFactory {
return object : NodeFactory(opcUaNamespace.getNodeContext()) {
override fun instanceNodeId(rootNodeId: NodeId, browsePath: BrowsePath): NodeId {
return if (rootNodeId == Identifiers.Server_ServerRedundancy) {
when (browsePath.join()) {
"/0:RedundancySupport" -> Identifiers.Server_ServerRedundancy_RedundancySupport
"/0:ServerUriArray" -> Identifiers.Server_ServerRedundancy_ServerUriArray
else -> super.instanceNodeId(rootNodeId, browsePath)
}
} else {
super.instanceNodeId(rootNodeId, browsePath)
}
}
}
} Note that this Then you can re-create the ServerRedundancyNode: val serverRedundancyNode: UaNode = redundancyNodeFactory().createNode(
Identifiers.Server_ServerRedundancy,
Identifiers.NonTransparentRedundancyType
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Hi, i'm trying to implement the Redundancy Visible Server Facet in my milo server, so i need to create a NonTransparentRedundancyType node in the node manager.
What i get in the UaExpert is:

I'm new to opc-ua development so i'm sure i'm doing something wrong in the code above, any help would be appreciated.
EDIT: This is implemented in a subclass of
ManagedAddressSpaceFragmentWithLifecycle
Beta Was this translation helpful? Give feedback.
All reactions