I often use the UDT to structure data in a consistent way.
I notice a strange behavior in the tag configuration: the payload used in the “system.tag.configuration()” function determines an override of the values even if they are exactly the same as those inherited from the UDT.
Below a simple example to better explain what I mean:
This is an UDT instance:
This is the code:
This is the result:
As you can see, the tagGroup, the valueSource and the dataType fields are overridden.
If I change the parent UDT configuration, the instance no longer inherites the modifications.
It would be nice to override only the fields whose values differ.
Am I doing in the correct way?
Thanks a lot.