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

[MV]Unable to parse ResultDataType for Machinery #497

Open
Tracked by #537
izonfreak opened this issue Jun 5, 2023 · 1 comment
Open
Tracked by #537

[MV]Unable to parse ResultDataType for Machinery #497

izonfreak opened this issue Jun 5, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@izonfreak
Copy link

izonfreak commented Jun 5, 2023

The gateway crashes if the object contains a variable of the ResultDataType from machinery. The variable is contain in a ResultType variable type also from machinery.

https://reference.opcfoundation.org/Machinery/Result/v100/docs/10.5

While the lack of support of variant arrays (BaseDataType) is expected. The crash when reading/browsing the variable is not. A null value for the result content is expected but the result metadata should be there as it is just structure with already known types.

The expected mqtt result should be something like:

{
"ResultManagement": {
"Results": {
"ResultVar": {
"ResultMetadata": {
"CreationTime": "2023-6-5T8:49:50:822Z",
"ExternalRecipeId": "-ExternalRecipeId",
"HasTransferableDataOnFile": false,
"InternalRecipeId": "-InternalRecipeId",
"IsPartial": false,
"IsSimulated": true,
"JobId": "-JobId",
"PartId": "-PartId",
"ResultId": "5-ResultId-6"
},
"ResultContent": "null"
}
}
}
}

@izonfreak izonfreak added the bug Something isn't working label Jun 5, 2023
@Kantiran91
Copy link
Member

I think this bug is related to #454 and #361
Maybe also a bug in the open62541 encoding.
@mdornaus Waht do you think?

@Kantiran91 Kantiran91 changed the title Unable to parse ResultDataType for Machinery [MV]Unable to parse ResultDataType for Machinery Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants