MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / string_to_variant

Function string_to_variant

opcua/common/ua_utils.py:134–138  ·  view source on GitHub ↗

convert back a string to an ua.Variant

(string, vtype)

Source from the content-addressed store, hash-verified

132
133
134def string_to_variant(string, vtype):
135 """
136 convert back a string to an ua.Variant
137 """
138 return ua.Variant(string_to_val(string, vtype), vtype)
139
140
141def get_node_children(node, nodes=None):

Callers

nothing calls this directly

Calls 1

string_to_valFunction · 0.85

Tested by

no test coverage detected