You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default generated AddressSpace implementation of UaVariant-type CacheVariables prevents clients from writing back arrays matching the current datatype, since the valueRank is always set to -1 for non-array types (including UaVariant), despite the server being allowed/able to write in an array-type variant value.
A suggested fix would be setting the valueRank for UaVariant CacheVariables to -3 (which in the open62541 implementation corresponds to scalar or 1D-array; see open62541 docs - Information Modelling) when generating the AddressSpace class. A possible implementation would be the addition of the following two lines to AddressSpace/templates/designToClassBody.jinja:
The default generated AddressSpace implementation of UaVariant-type CacheVariables prevents clients from writing back arrays matching the current datatype, since the
valueRank
is always set to-1
for non-array types (including UaVariant), despite the server being allowed/able to write in an array-type variant value.A suggested fix would be setting the
valueRank
for UaVariant CacheVariables to-3
(which in the open62541 implementation corresponds to scalar or 1D-array; see open62541 docs - Information Modelling) when generating the AddressSpace class. A possible implementation would be the addition of the following two lines toAddressSpace/templates/designToClassBody.jinja
:The text was updated successfully, but these errors were encountered: