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

Method set_attr_bit

opcua/common/node.py:233–236  ·  view source on GitHub ↗
(self, attr, bit)

Source from the content-addressed store, hash-verified

231 self.unset_attr_bit(ua.AttributeIds.UserAccessLevel, ua.AccessLevel.CurrentWrite)
232
233 def set_attr_bit(self, attr, bit):
234 val = self.get_attribute(attr)
235 val.Value.Value = ua.ua_binary.set_bit(val.Value.Value, bit)
236 self.set_attribute(attr, val)
237
238 def unset_attr_bit(self, attr, bit):
239 val = self.get_attribute(attr)

Callers 2

set_writableMethod · 0.95

Calls 2

get_attributeMethod · 0.95
set_attributeMethod · 0.95

Tested by

no test coverage detected