Null values for attributes #2351
Unanswered
SachaSaxer
asked this question in
Q&A
Replies: 1 comment
-
why don't you use a helper function like:
It deals with all the attributes, if you set NodeClass.Unspecified it reads all supported attributes. You may have to cast the result to e.g. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to write a sub section of a struct (which is also a struct) so I'm reading the DataType attribute of the node of the sub-struct but for some reason I'm getting a null value which doesn't make any sense whatsoever. My code for reading the node attributes is below, I found it in one of those APIHelper classes.
`public Dictionary<uint, DataValue> ReadNodeAttributes(String nodeIdString)
{
if (null == _session)
return new Dictionary<uint, DataValue>(); //throw not connected exception
`
Any ideas where I'm doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions