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

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

Back to the top