Some servers don't accept a null user identity.

This commit is contained in:
Erich Barnstedt
2017-01-23 08:42:37 +01:00
parent 5ac4be5a91
commit 37cb8e221e
@@ -130,7 +130,7 @@ namespace NetCoreConsoleClient
var endpointConfiguration = EndpointConfiguration.Create(config);
var endpoint = new ConfiguredEndpoint(selectedEndpoint.Server, endpointConfiguration);
endpoint.Update(selectedEndpoint);
var session = await Session.Create(config, endpoint, true, ".Net Core OPC UA Console Client", 60000, null, null);
var session = await Session.Create(config, endpoint, true, ".Net Core OPC UA Console Client", 60000, new UserIdentity(new AnonymousIdentityToken()), null);
Console.WriteLine("4 - Browse the OPC UA server namespace.");
ReferenceDescriptionCollection references;