You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've developed an OPC UA server using the .NET OPC UA Framework. I've successfully added a custom type to the server, which is visible under the Types section in UAExpert, complete with all its properties. This custom type implements both the Opc.Ua.IEncodable and IJsonEncodable interfaces.
Despite this, I'm encountering issues when trying to read or write values of this custom type. I suspect that the problem is likely related to encoding.
To address this, I've attempted to register the custom type with the global EncodingFactory using the following code snippet:
I've noticed that other types have HasEncoding references, while my custom type does not. I'm considering adding encoding references to my custom type, but I'm currently unsure how to proceed effectively.
Could anyone offer some guidance or suggestions to help me resolve this issue?
This discussion was converted from issue #2285 on August 29, 2023 07:35.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Type of issue
Current Behavior
Hello everyone,
I've developed an OPC UA server using the .NET OPC UA Framework. I've successfully added a custom type to the server, which is visible under the Types section in UAExpert, complete with all its properties. This custom type implements both the Opc.Ua.IEncodable and IJsonEncodable interfaces.
Despite this, I'm encountering issues when trying to read or write values of this custom type. I suspect that the problem is likely related to encoding.
To address this, I've attempted to register the custom type with the global EncodingFactory using the following code snippet:
Opc.Ua.EncodableFactory.GlobalFactory.AddEncodeableType(typeof(MyCustomType));
Unfortunately, this hasn't resolved the issue.
I've noticed that other types have HasEncoding references, while my custom type does not. I'm considering adding encoding references to my custom type, but I'm currently unsure how to proceed effectively.
Could anyone offer some guidance or suggestions to help me resolve this issue?
Thank you in advance!
Expected Behavior
No response
Steps To Reproduce
No response
Environment
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions