The following methods have to be defined if extra attributes are added by the property DynamicAttributes:
def read_DynamicAttr(self, name): if name == "attr1": return 1 elif name == "attr2": return 2 def write_DynamicAttr(self, name, value): if name == "attr1": print "Value for attr1 " + str(value)
The example asumes two dynamic attributes with the names attr1 and attr2. attr2 read-only attribute. The property DynamicAttributes of the device could look like (jive):
Property name | Value -------------------------------- Dynamic Attribute | attr1,int,rw | attr2,int,r