Why do I get an error when using sername for authentifiction with OPC Toolbox?

After trying to connect to an OPC UA Client object, I receive this error in the MATLAB command line:
Error using opc.ua.Client/connect  (line 498) The user identity token is not valid.
Does the OPC Toolbox fully support user credentials and transport security layer?

 Accepted Answer

This is an expected behavior. As of R2019b, we support only anonymous, unsecured connections with the OPC Toolbox
Please run the below command in the command window of installed MATLAB R2019a version to get release specific documentation:
>> web(fullfile(docroot, 'opc/ug/opcua_opcua.html'))
You may update to MATLAB release R2020a to fix the encountered error. 
Please follow the below link to search for the required information regarding the current release:

More Answers (0)

Products

Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!