Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem to add values with status other than good #6438

Open
wants to merge 1 commit into
base: 1.3
Choose a base branch
from

Conversation

joerg555
Copy link
Contributor

If the status of a variable node is other than "good" you are not able to add the value to the datastore.

This is only a workaround to allow add variable with "uncertain" status.

Normaly you can allso have variable with "BADCOMMUNICATIONERROR" or other.
may be we have to change:

UA_DataValue
UA_Server_readWithSession(UA_Server *server, UA_Session *session,
                          const UA_ReadValueId *item,
                          UA_TimestampsToReturn timestampsToReturn);

to:

UA_StatusCode
UA_Server_readWithSession(UA_Server *server, UA_Session *session,
                          const UA_ReadValueId *item,
                          UA_TimestampsToReturn timestampsToReturn, UA_DataValue *dv)

to get full information with UA_DataValue and UA_StatusCode

Please check this, if you think it's the right way, i can change th code and make a pull request.

 if the status of a variable node is "uncertain" the statuscode of readWithReadValue must be ok.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant