Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Connecting the RoboDK OPC-UA-Client with username and password?

#1
Is there a way to connect to an OPC-UA-Server using username and password? I can only change the server and port, but I can't find a way to add the necessary username and password in the RoboDK client's configuration.

Is there a way and I just can't see it?
#2
It is currently not possible to connect to an OPC-UA server using a user name and a password using the user interface. However, it is very easy to update the OPC-UA plugin to support this feature:
https://github.com/RoboDK/Plug-In-Interf...gin-OPC-UA

You should simply replace the function UA_Client_connect by UA_Client_connect_username of opcua_client.cpp. Example:
Code:
// statusCode = UA_Client_connect(client, EndpointUrl.toUtf8().constData());
statusCode = UA_Client_connect_username(client, EndpointUrl.toUtf8().constData(), "username", "password");
Let us know if you need help.
  




Users browsing this thread:
1 Guest(s)