-
Notifications
You must be signed in to change notification settings - Fork 9
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
Wrong status of a varibale in READRESPONSE. #41
Comments
The SPEC specifies that the StatusCode must be returned as a number and not as a string. A string is only allowed in a status object but not in a status variable. Currently we do not support status objects. Should there still be a status string returned then this should be changed. @FLIPBack - Do you know such places? |
Ok. I agree that the status of the value must be an integer. But the names are confusing me again. My offer is to rename Status to OpcUaStatusCode, so its semantic will be clearer. StatusCode is not the best name, but it might cause a lot of changes to rename it. |
Sorry didn't catch, 😞 |
The implementation (OpcUaWebServer) uses proprietary and OPC UA data types. The description of JSON was not yet included in the SPEC at this time. Therefore, all status codes were transmitted in string format. The new OPC UA specification now also describes the JSON formats. Therefore, the OPC UA data types have already been changed. The own data types were probably not changed yet. That's why there are still differences. I also think the own data types should be adapted to the OPC UA standard. |
@huebl , could you give an example? |
Example OPC UA Data Type: OpcUaVariable (READ_RESPONSE Body) All requests do not exist in OPC UA. As a result, many own data types are used for the requests / responses. The situation in the OpcUaGateway is different. In most cases (exception login) OPC UA data types are used in this component. |
Having a look at the specification, I see that you follow the standard.
How do you want to do it? |
Describe the bug
If a variable in the OPC UA server has a not success status, it is copied in READRESPONSE as a number. In other situations, the status code has a string value, for an example 'BadInvalidNodeId'.
To Reproduce
Results:
Expected behavior
The status should be:
The text was updated successfully, but these errors were encountered: