Hello Mikko,
I have Data class object where attribute 2 is of Structure type, for example.
<Structure>
<UInt8 Value="255" />
<UInt8 Value="255" />
</Structure>
I need to write new value for this attribute.
This sample gives me python type error (something like 'type not set'):
my_object = objects.GXDLMSData( OBIS_name )
old_value = reader.read( my_object, 2 )
value=GXStructure()
value.append(GXUInt8(it[0]))
value.append(GXUInt8(it[1]))
my_object.value = value
reader.write( my_object, 2 )
though it work ok if I add this line:
my_object.setDataType(2, DataType.STRUCTURE)
just after "my_object" creation.
So the question is what shouild I do to read attribute 2 datatype automaticaly from the meter?
Hi, This is updated to…
Hi,
This is updated to version 1.0.192.
BR,
Mikko