How to cast VariantType (datatype) when batch writing to UA Server #1450
-
Beta Was this translation helpful? Give feedback.
Answered by
AndreasHeine
Mar 29, 2022
Replies: 1 comment 4 replies
-
you could read the DataType of the tags in Dest UA Server up front after connected and Map it to the NodeIds of the Source Server (a simple dict "SrcNodeId": "DstVariantType") and then loop one time over the batch and create the list of DataValues with the new VariantTypes and with the old Values and Timestamps? |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
ryangu18
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you could read the DataType of the tags in Dest UA Server up front after connected and Map it to the NodeIds of the Source Server (a simple dict "SrcNodeId": "DstVariantType") and then loop one time over the batch and create the list of DataValues with the new VariantTypes and with the old Values and Timestamps?