Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] Problem in assigning numeric value to nodeID

This looks okay on its own, we'll need to see more of the surrounding code for additional context.

On Thu, Dec 5, 2019 at 5:15 AM J Dhanasekar <jdhanasekar@xxxxxxxxxxxxxxxxxx> wrote:
Attaching the screenshot,

image.png

On Thu, Dec 5, 2019 at 6:34 PM J Dhanasekar <jdhanasekar@xxxxxxxxxxxxxxxxxx> wrote:
Hi Milo,

I have created variableNode and I have assigned numeric ID,

UaVariableNode flip = UaVariableNode.builder(getNodeContext())
.setNodeId(newNodeId(12345))
.setAccessLevel(ubyte(AccessLevel.getMask(AccessLevel.READ_WRITE)))
.setBrowseName(newQualifiedName("Flip"))
.setDisplayName(LocalizedText.english("Flip"))
.setDataType(Identifiers.Int32)
.setTypeDefinition(Identifiers.BaseDataVariableType)
.build();

But, I am not getting numeric ID  "12345" in browser window, Instead I am getting string value "ns=2;s=HelloWorld/MyObject/2:Flip".

Can you please help me to solve this issue ?.

Thanks,
Dhanasekar
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/milo-dev

Back to the top