Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] Unable to subscribe to OPC-UA server node

The NodeId in your screenshot from UaExpert is using a NodeId with an integer identifier and the code sample you've provided is using a String identifier.

Try removing the quotes: new NodeId(2, 6051)

On Sat, Mar 20, 2021 at 11:57 PM RB, Pramod Kumar <pramodkumar.rb@xxxxxxxxxxxxxxxx> wrote:

Hi team,

 

I am trying subscribe to opc-ua server Node value change using milo.opc-ua client-examples project, following is the code changed to test it using SubscriptionExample class

 

  ReadValueId readValueId = new ReadValueId( new NodeId(2,"6051"),

  AttributeId.Value.uid(), null, QualifiedName.NULL_VALUE );

 

But, I am getting this error

[main] WARN  o.e.m.e.client.SubscriptionExample - failed to create item for nodeId=NodeId{ns=2, id=5003} (status=StatusCode{name=Bad_NodeIdUnknown, value=0x80340000, quality=bad})

 

 

Its working in opc-ua UaExpert tool

Graphical user interface, text, application

Description automatically generated

 

Please provide required details/example to subscribe to opc-ua node to capture data on node change

 

Regards,

Pramod

 

 

 




This e-mail and any attachments thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments permanently from your system/server, if stored. Unauthorized use, copying or further full or partial distribution of this e-mail or its contents is prohibited and will be subject to prosecution.
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev

Back to the top