I've searched for hours how to change the nodeid of my objects/variables in freeopcua, but unfortunately can't figure it out.
Can someone with more experience help me out here please?
I've searched for hours how to change the nodeid of my objects/variables in freeopcua, but unfortunately can't figure it out.
Can someone with more experience help me out here please?
Should someone face the same problem - the answer is: While you creating a variable inside a object you can change a nodeid as follows:
myvar = myobj.add_variable("ns=22; s=whatYouWantToCallYourID", "NameOfYourVariable", 0)
Where ns=22 is a namespace of 22 (just for example) and s=whatYouWantToCallYourID the string name of the NodeID. 0 is the initial value of your variable that is beeing created with the above code.