Using an OPC UA Client in Unity #2321
Unanswered
epexegesis
asked this question in
Q&A
Replies: 1 comment
-
Hi @epexegesis, please follow the console sample how to create a client: https://github.com/OPCFoundation/UA-.NETStandard/blob/master/Applications/ConsoleReferenceClient/UAClient.cs There is also an API to configure a client using code, as in this sample: If you follow the samples a self signed certificate is created for the application with this function: bool haveAppCertificate = await application.CheckApplicationInstanceCertificate(true, 0).ConfigureAwait(false); Hope this helps |
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 pretty new to this but I have been trying to make an application using Unity that will act as an OPC UA Client and read some data from a server. Even though I'm not sure if I'm on the right track, using various sources I've managed to come up with the source code below.
I used NuGet on Visual Studio to download the necessary OPCFoundation.NetStandard files (Opc.Ua.Core, Opc.Ua.Configuration, Opc.Ua.Client, and Opc.Ua.SecurityCertificates) and put the DLL files into my Unity project.
When I run the code below, I get this following error:
ServiceResultException: ApplicationCertificate cannot be found.
I understand that I have to acquire a certificate from somewhere, but it is also my understanding that a certificate will be created at runtime? I can't quite grasp the concept of this, because when I look for the "StorePath" in the CertificateIdentifier, there isn't actually a folder on my computer called OPCFoundation. So it makes sense that it can't find the certificate, but I'm not quite sure how to get it.
Another question that I have is that, let's say this application was built and then given to another computer, would they need to have a certificate on their PC to run the program? This (hopefully last) bit has really stumped me and I'm not sure what I'm missing anymore.
Beta Was this translation helpful? Give feedback.
All reactions