diff --git a/.vs/IoTGateway/DesignTimeBuild/.dtbcache.v2 b/.vs/IoTGateway/DesignTimeBuild/.dtbcache.v2 index e4460d8..e7ec58f 100644 Binary files a/.vs/IoTGateway/DesignTimeBuild/.dtbcache.v2 and b/.vs/IoTGateway/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/IoTGateway/v17/.futdcache.v1 b/.vs/IoTGateway/v17/.futdcache.v1 index 12bdd9e..8d1345d 100644 Binary files a/.vs/IoTGateway/v17/.futdcache.v1 and b/.vs/IoTGateway/v17/.futdcache.v1 differ diff --git a/.vs/IoTGateway/v17/.suo b/.vs/IoTGateway/v17/.suo index 81c4bd8..0f07143 100644 Binary files a/.vs/IoTGateway/v17/.suo and b/.vs/IoTGateway/v17/.suo differ diff --git a/IoTGateway/IoTGateway.csproj.user b/IoTGateway/IoTGateway.csproj.user index 7a791b3..81b1159 100644 --- a/IoTGateway/IoTGateway.csproj.user +++ b/IoTGateway/IoTGateway.csproj.user @@ -2,7 +2,7 @@ IoTGateway - FolderProfile + D:\Repos\iotgateway\IoTGateway\Properties\PublishProfiles\FolderProfile.pubxml ProjectDebugger diff --git a/IoTGateway/Properties/PublishProfiles/FolderProfile.pubxml.user b/IoTGateway/Properties/PublishProfiles/FolderProfile.pubxml.user index c919999..32c8dc0 100644 --- a/IoTGateway/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/IoTGateway/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. --> - <_PublishTargetUrl>E:\workbench\iotgateway\IoTGateway\bin\Release\net5.0\publish\ - True|2021-12-17T11:11:07.1655146Z;True|2021-12-12T14:11:08.8380502+08:00; + <_PublishTargetUrl>D:\Repos\iotgateway\IoTGateway\bin\Release\net5.0\publish\ + True|2021-12-24T07:20:08.6401847Z;True|2021-12-17T19:11:07.1655146+08:00;True|2021-12-12T14:11:08.8380502+08:00; \ No newline at end of file diff --git a/Plugins/Plugin/DeviceThread.cs b/Plugins/Plugin/DeviceThread.cs index 568dd7b..f374e92 100644 --- a/Plugins/Plugin/DeviceThread.cs +++ b/Plugins/Plugin/DeviceThread.cs @@ -98,9 +98,6 @@ namespace Plugin else ret.CookedValue = ret.Value; - if (ret.StatusType == VaribaleStatusTypeEnum.Bad) - Console.WriteLine(Driver.Connect()); - payLoad.Values[item.Name] = ret.CookedValue; ret.VarId = item.ID; diff --git a/Plugins/Plugin/UA.Server/ReferenceNodeManager.cs b/Plugins/Plugin/UA.Server/ReferenceNodeManager.cs index 141b513..a214915 100644 --- a/Plugins/Plugin/UA.Server/ReferenceNodeManager.cs +++ b/Plugins/Plugin/UA.Server/ReferenceNodeManager.cs @@ -2243,11 +2243,17 @@ namespace Quickstarts.ReferenceServer /// /// Creates a new variable. /// - private BaseDataVariableState CreateIoTGatewayVariable(NodeState parent, string path, string name, NodeId dataType, int valueRank) + private void CreateIoTGatewayVariable(NodeState parent, string path, string name, NodeId dataType, int valueRank) { - BaseDataVariableState variable = CreateVariable(parent, path, name, dataType, valueRank, false); - m_iotgatewayNodes.Add(variable); - return variable; + try + { + BaseDataVariableState variable = CreateVariable(parent, path, name, dataType, valueRank, false); + m_iotgatewayNodes.Add(variable); + } + catch (Exception ex) + { + Console.WriteLine($"节点创建失败,{name},{ex}"); + } }