Skip to content

set_value() for ExtensionObject #1445

Description

@scch1092

Hi all, I wanted to know if anyone faced a similar problem. I have created a custom type (Struct) on my OPC-UA server. This one I can read. Unfortunately I don't know how to change values in this struct.

variants = client.load_type_definitions()
ex_node = client.get_node("ns=4;s=glb.exObj")
ex_node_value = ex_node.get_value()
ex_node_datavalue = ex_node.get_data_value()

For testing I created the object "exObj" from this Struct type. This contains two bool variables and one float. How can I change one or more values with "set_value()" now?
custom

Thanks in advance! =)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions