mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-22 19:43:07 +08:00
去除ua数据类型验证
This commit is contained in:
@@ -325,17 +325,17 @@ public class ThingsGatewayNodeManager : CustomNodeManager2
|
||||
{
|
||||
OPCUATag variable = node as OPCUATag;
|
||||
// 验证数据类型。
|
||||
Opc.Ua.TypeInfo typeInfo = Opc.Ua.TypeInfo.IsInstanceOfDataType(
|
||||
value,
|
||||
variable.DataType,
|
||||
variable.ValueRank,
|
||||
context.NamespaceUris,
|
||||
context.TypeTable);
|
||||
//Opc.Ua.TypeInfo typeInfo = Opc.Ua.TypeInfo.IsInstanceOfDataType(
|
||||
// value,
|
||||
// variable.DataType,
|
||||
// variable.ValueRank,
|
||||
// context.NamespaceUris,
|
||||
// context.TypeTable);
|
||||
|
||||
if (typeInfo == null || typeInfo == Opc.Ua.TypeInfo.Unknown)
|
||||
{
|
||||
return StatusCodes.BadTypeMismatch;
|
||||
}
|
||||
//if (typeInfo == null || typeInfo == Opc.Ua.TypeInfo.Unknown)
|
||||
//{
|
||||
// return StatusCodes.BadTypeMismatch;
|
||||
//}
|
||||
// 检查索引范围。
|
||||
if (_idTags.TryGetValue(variable.NodeId, out OPCUATag tag))
|
||||
{
|
||||
|
Reference in New Issue
Block a user