OPC UA client
OPC UA client able to run OPC operations on an OPC UA server.
The client allows run single or recurring operations targeting an OPC UA server to:
- test connectivity by reading the current time node
- read node values
By default opc-client is testing the connectivity to
opc.tcp://opcplc:50000. This can be disabled or changed to a different endpoint via command line.
The implementation is based on .NET Core so it is cross-platform and recommended hosting environment is docker.
There is no installation required.
A docker container of the component is hosted in the Microsoft Container Registry and can be pulled by:
docker pull mcr.microsoft.com/iotedge/opc-client
The tags of the container match the tags of this repository and the containers are available for Windows amd64, Linux amd64 and Linux ARM32.
The OpcPlc is an OPC UA server, which is the default target OPC UA server.
Please check out the github repository https://github.com/Azure-Samples/iot-edge-industrial-configs for sample configurations showing usage of this OPC UA client implementation.
X.509 certificates releated:
- Running on Windows natively, you can not use an application certificate store of type
Directory, since the access to the private key fails. Please use the option
--at X509Storein this case.
- Running as Linux docker container, you can map the certificate stores to the host file system by using the docker run option
-v <hostdirectory>:/appdata. This will make the certificate persistent over starts.
- Running as Linux docker container and want to use an X509Store for the application certificate, you need to use the docker run option
-v x509certstores:/root/.dotnet/corefx/cryptography/x509storesand the application option