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

Method set_event_notifier

opcua/common/node.py:125–132  ·  view source on GitHub ↗

Set the event notifier attribute. :param values: an iterable of EventNotifier enum values.

(self, values)

Source from the content-addressed store, hash-verified

123 return ua.EventNotifier.parse_bitfield(result.Value.Value)
124
125 def set_event_notifier(self, values):
126 """
127 Set the event notifier attribute.
128
129 :param values: an iterable of EventNotifier enum values.
130 """
131 event_notifier_bitfield = ua.EventNotifier.to_bitfield(values)
132 self.set_attribute(ua.AttributeIds.EventNotifier, ua.DataValue(ua.Variant(event_notifier_bitfield, ua.VariantType.Byte)))
133
134 def get_node_class(self):
135 """

Callers 2

__init__Method · 0.95
enable_history_eventMethod · 0.80

Calls 2

set_attributeMethod · 0.95
to_bitfieldMethod · 0.80

Tested by

no test coverage detected