Skip to content

AttributeError: 'str' object has no attribute 'write_value' #1515

Answered by schroeder-
Hrathen23 asked this question in Q&A
Discussion options

You must be logged in to vote

You are in the wrong repo. But you can only write the total structure. In your case:

old_struct = await mystruct.get_value()
old_struct.MyBool = 'Text'
await mystruct.write_value(old_struct)

or this way:

val = ua.MyStruct(MyBool='Text')
await mystruct.write_value(val)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Hrathen23
Comment options

Answer selected by Hrathen23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants