update opcuaclient

This commit is contained in:
Kimdiego2098
2023-10-04 17:12:47 +08:00
parent bff18127b8
commit 56189d78e0
@@ -682,7 +682,7 @@ public class OPCUAClient : IDisposable
}
NodeId nodeToRead = new(nodeIdStr);
var node = (VariableNode)await ReadNodeAsync(nodeToRead, NodeClass.Variable, false, cancellationToken);
var node = (VariableNode)await ReadNodeAsync(nodeToRead, NodeClass.Unspecified, false, cancellationToken);
await typeSystem.LoadType(node.DataType, true, false);
_variableDicts.AddOrUpdate(nodeIdStr, node);
return node;
@@ -784,6 +784,8 @@ public class OPCUAClient : IDisposable
attributeId == Attributes.Description ||
attributeId == Attributes.RolePermissions ||
attributeId == Attributes.UserRolePermissions ||
attributeId == Attributes.DataTypeDefinition ||
attributeId == Attributes.AccessLevelEx ||
attributeId == Attributes.UserWriteMask ||
attributeId == Attributes.WriteMask)
{