Azure / iot-edge-opc-proxy-api-csharp

OPC Proxy API
16 stars 7 forks source link

Add comments in OPC UA example #6

Closed ubaer closed 6 years ago

ubaer commented 6 years ago

Could you add comments in the OPC UA example explaining what is happening so it gets clear how you can implement the proxy in your own .NET OPC UA clients?

yamashinmk2 commented 6 years ago

We assume the proxy is working probably, but we cannot connect to it. The IOT proxy should be some kind of OPCUA Server with an endpoint. We are looking for this endpoint name and the port number of this proxy's OPC UA Server. http://....

Gimly commented 6 years ago

@yamashinmk2 Did you manage to find something? I'm wondering exactly the same thing. I've managed to run the proxy, but how am I supposed to connect to it?

marcschier commented 6 years ago

The OPC UA example is pretty much a clone of the original netconsoleclient sample in the OPC foundation .net Standard repository (also on GitHub). It exercises OPC services through the proxy on an OPC netconsoleserver sample reference server (also from the the .net Standard repository). This server should run in the same subnet as the proxy.

To use the code, start the netconsoleserver OPC UA server, start the proxy, and then use the included sample pointing it to the hostname of the machine the server is running on.
We could make this simpler by pointing to docker containers for the server and proxy, but at this point you will have to build and start the server from the .net Standard OPC UA stack repo in the OPC foundation github site.