OPCUAUniCT / OPCUAWebPlatformUniCT

An ASP.NET Core web application exposing OPC UA Servers to non OPCUA-compliant clients with a REST interface
GNU General Public License v2.0
103 stars 43 forks source link

OPCUAServer in TiaPortal V16 #18

Closed tronghuybku closed 4 years ago

tronghuybku commented 4 years ago

I want connect Platform with OPCUA Server in S7-1500 (Tia Portal). But I can't add Certificate of Platform to OPCUA Server in S7-1500

msalafia commented 4 years ago

I have to say that i neve had the chance to try an OPC UA Server of S7-1500 so i'm not an expert about that. In any case i think you have to be more specific abou the problem you faced or, at least, provide me some erreors or details about the issue. I cannot help you in this way.

msalafia commented 4 years ago

The Platform uses by default a secured endpoint of an OPC UA Server. This behaviour is hardcoded. If you want to change it, open the file UAClient.cs and in the function GetSessionAsync change:

endpointDescription = CoreClientUtils.SelectEndpoint(serverUrl, true, 15000);

with

endpointDescription = CoreClientUtils.SelectEndpoint(serverUrl, false, 15000);

I hope this solves your issue.

msalafia commented 4 years ago

Nice, i hope you will enjoy the platform! I'm closing this issue.