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

Method get_value

opcua/common/node.py:148–156  ·  view source on GitHub ↗

Get value of a node as a python type. Only variables ( and properties) have values. An exception will be generated for other node types. WARNING: on server side, this function returns a ref to object in ua database. Do not modify it if it is a mutable object unless y

(self)

Source from the content-addressed store, hash-verified

146 return result.Value.Value
147
148 def get_value(self):
149 """
150 Get value of a node as a python type. Only variables ( and properties) have values.
151 An exception will be generated for other node types.
152 WARNING: on server side, this function returns a ref to object in ua database. Do not modify it if it is a mutable
153 object unless you know what you are doing
154 """
155 result = self.get_data_value()
156 return result.Value.Value
157
158 def get_data_value(self):
159 """

Callers 15

_lsprint_1Function · 0.80
runMethod · 0.80
get_namespace_arrayMethod · 0.80
register_namespaceMethod · 0.80
_set_current_timeMethod · 0.80
set_application_uriMethod · 0.80
set_build_infoMethod · 0.80
get_namespace_arrayMethod · 0.80
register_namespaceMethod · 0.80
load_type_definitionsFunction · 0.80
_get_enum_valuesFunction · 0.80
_get_enum_stringsFunction · 0.80

Calls 1

get_data_valueMethod · 0.95