12/04/2015
The id of the node is "ns=2;i=10302". It's full name is "Object/Data/Static/Array/ByteValue". The type of Value attribute is ByteString not Byte[].
All other sibling nodes like "Object/Data/Static/Array/SByte" or "Object/Data/Static/Array/In16" have attribute Value of type array, respectively SByte[] and Int16[].
Does using ByteString instead of Byte[] is correct? If yes then is using Byte[] incorrect?
Hello,
This is a good question and fortunately has an easy answer.
In some development languages such as Java and .NET, they cannot distinguish the difference between a ByteString and Byte[] array. For those languages they're seen the same thing and therefore interpreted [typically] as ByteString.
This poses more of a problem for the other development languages that can distinguish a difference between them. I think in UA 1.02 specification a clause was added to force Servers to automatically convert ByteString-to-Byte[] and vice-versa.
So to answer your question, this behavior is OK.
1 Guest(s)