Skip to content

Can't edit/change description of Node #1003

Discussion options

You must be logged in to vote

Got it! Forgot to add the "Await" statement in front of the write_attribute line. Working code is now:

self.variable = await self.Object.add_variable(idx, "Name", 0.0)
await self.variable.write_attribute(ua.AttributeIds.Description, ua.DataValue(ua.LocalizedText("TEST")))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MatthewBoss96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant