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

Method add_property

opcua/common/events.py:40–45  ·  view source on GitHub ↗

Add a property to event and tore its data type

(self, name, val, datatype)

Source from the content-addressed store, hash-verified

38 __repr__ = __str__
39
40 def add_property(self, name, val, datatype):
41 """
42 Add a property to event and tore its data type
43 """
44 setattr(self, name, val)
45 self.data_types[name] = datatype
46
47 def get_event_props_as_fields_dict(self):
48 """

Callers 3

from_field_dictMethod · 0.95
from_event_fieldsMethod · 0.95
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected