nauful / LibUA

Open-source OPC UA client and server library
Apache License 2.0
262 stars 94 forks source link

Writing tag problem #71

Closed byrialsen closed 2 years ago

byrialsen commented 2 years ago

Hi

I assume this is more a noob question. I get this null reference exception. Do you have any idea what I do wrong. I believe it is related to the NodeId constructor.

image

nauful commented 2 years ago

Hello,

You should define that NodeId as NodeId(3, "\"dbMsi\".\"toSf\".\"WatchDog\"). ns=3;s=... is the serialized form of NodeId. Alternative, you could have used NodeId.Parse with that string. Otherwise the node id will not match as it is right now.

Could you tell me what object is causing that null reference exception? It should be fine.

nauful commented 2 years ago

That should have solved your issue. Please leave a comment if you still have this problem.