Hello,
We use QuickOPC in COM with Delphi.
I try to connect to OPC server UA with authentication.
With this code it works great :But know i want to pu multiple Username ant password for multiple OPC Server UA.
How we must do that in Delphi? I have found UserIdentity.CreateUserNameIdentity in your documentation but this method is not available in Delphi wrapper.
Thanks for your help.
We use QuickOPC in COM with Delphi.
I try to connect to OPC server UA with authentication.
With this code it works great :
EasyUAClientConfiguration := TEasyUAClientConfiguration.Create(nil);
//EasyUAClientConfiguration.AdaptableParameters.SessionParameters.UserIdentity.UserNameTokenInfo.UserName := 'admin';
//EasyUAClientConfiguration.AdaptableParameters.SessionParameters.UserIdentity.UserNameTokenInfo.Password := 'moxa'; UserIdentity := TUserIdentity.Create(nil);
UserIdentity.UserNameTokenInfo.UserName := 'admin';
Useridentity.UserNameTokenInfo.Password := 'moxa';
EasyUAClientConfiguration.AdaptableParameters.SessionParameters.UserIdentity := Useridentity.DefaultInterface;
Useridentity.Destroy; EasyUAClientConfiguration.Destroy;
How we must do that in Delphi? I have found UserIdentity.CreateUserNameIdentity in your documentation but this method is not available in Delphi wrapper.
Thanks for your help.