增加opcuaserver日志

This commit is contained in:
dd 2021-12-24 16:00:10 +08:00
parent 2755462e58
commit 724c46a9f1
7 changed files with 13 additions and 10 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2,7 +2,7 @@
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<ActiveDebugProfile>IoTGateway</ActiveDebugProfile> <ActiveDebugProfile>IoTGateway</ActiveDebugProfile>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>D:\Repos\iotgateway\IoTGateway\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor> <DebuggerFlavor>ProjectDebugger</DebuggerFlavor>

View File

@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
--> -->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<_PublishTargetUrl>E:\workbench\iotgateway\IoTGateway\bin\Release\net5.0\publish\</_PublishTargetUrl> <_PublishTargetUrl>D:\Repos\iotgateway\IoTGateway\bin\Release\net5.0\publish\</_PublishTargetUrl>
<History>True|2021-12-17T11:11:07.1655146Z;True|2021-12-12T14:11:08.8380502+08:00;</History> <History>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;</History>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -98,9 +98,6 @@ namespace Plugin
else else
ret.CookedValue = ret.Value; ret.CookedValue = ret.Value;
if (ret.StatusType == VaribaleStatusTypeEnum.Bad)
Console.WriteLine(Driver.Connect());
payLoad.Values[item.Name] = ret.CookedValue; payLoad.Values[item.Name] = ret.CookedValue;
ret.VarId = item.ID; ret.VarId = item.ID;

View File

@ -2243,11 +2243,17 @@ namespace Quickstarts.ReferenceServer
/// <summary> /// <summary>
/// Creates a new variable. /// Creates a new variable.
/// </summary> /// </summary>
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); try
m_iotgatewayNodes.Add(variable); {
return variable; BaseDataVariableState variable = CreateVariable(parent, path, name, dataType, valueRank, false);
m_iotgatewayNodes.Add(variable);
}
catch (Exception ex)
{
Console.WriteLine($"节点创建失败,{name},{ex}");
}
} }