Opc Fix
This commit is contained in:
@@ -30,18 +30,14 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Modbus.Net\Modbus.Net.csproj" />
|
<PackageReference Include="H.Opc" Version="0.9.3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System.Configuration" />
|
<ProjectReference Include="..\Modbus.Net\Modbus.Net.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="README.md" Pack="true" PackagePath="" />
|
<None Include="README.md" Pack="true" PackagePath="" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="H.Opc" Version="0.9.3" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Configuration;
|
|
||||||
|
|
||||||
namespace Modbus.Net.OPC
|
namespace Modbus.Net.OPC
|
||||||
{
|
{
|
||||||
@@ -11,7 +11,7 @@ namespace Modbus.Net.OPC
|
|||||||
/// 构造函数
|
/// 构造函数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="isRegexOn">是否开启正则匹配</param>
|
/// <param name="isRegexOn">是否开启正则匹配</param>
|
||||||
public OpcDaProtocolLinker(bool isRegexOn) : this(ConfigurationManager.AppSettings["OpcDaHost"], isRegexOn)
|
public OpcDaProtocolLinker(bool isRegexOn) : this(ConfigurationReader.GetValueDirect("OpcDa", "Host"), isRegexOn)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace Modbus.Net.OPC
|
|||||||
/// 构造函数
|
/// 构造函数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="isRegexOn">是否开启正则匹配</param>
|
/// <param name="isRegexOn">是否开启正则匹配</param>
|
||||||
public OpcUaProtocolLinker(bool isRegexOn) : this(ConfigurationManager.AppSettings["OpcUaHost"], isRegexOn)
|
public OpcUaProtocolLinker(bool isRegexOn) : this(ConfigurationReader.GetValueDirect("OpcUa", "Host"), isRegexOn)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,12 @@
|
|||||||
<DocumentationFile>bin\Debug\Modbus.Net.xml</DocumentationFile>
|
<DocumentationFile>bin\Debug\Modbus.Net.xml</DocumentationFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="appsettings.default.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="DotNetty.Handlers" Version="0.7.5" />
|
<PackageReference Include="DotNetty.Handlers" Version="0.7.5" />
|
||||||
<PackageReference Include="FastEnum" Version="1.8.0" />
|
<PackageReference Include="FastEnum" Version="1.8.0" />
|
||||||
|
|||||||
@@ -39,6 +39,12 @@
|
|||||||
"Parity": "Even"
|
"Parity": "Even"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"OpcDa": {
|
||||||
|
"Host": "opcda://localhost/test"
|
||||||
|
},
|
||||||
|
"OpcUa": {
|
||||||
|
"Host": "opc.tcp://localhost/test"
|
||||||
|
},
|
||||||
"Controller": {
|
"Controller": {
|
||||||
"WaitingListCount": "100"
|
"WaitingListCount": "100"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,12 @@
|
|||||||
"Parity": "Even"
|
"Parity": "Even"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"OpcDa": {
|
||||||
|
"Host": "opcda://localhost/test"
|
||||||
|
},
|
||||||
|
"OpcUa": {
|
||||||
|
"Host": "opc.tcp://localhost/test"
|
||||||
|
},
|
||||||
"Controller": {
|
"Controller": {
|
||||||
"WaitingListCount": "100"
|
"WaitingListCount": "100"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,12 @@
|
|||||||
"Parity": "Even"
|
"Parity": "Even"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"OpcDa": {
|
||||||
|
"Host": "opcda://localhost/test"
|
||||||
|
},
|
||||||
|
"OpcUa": {
|
||||||
|
"Host": "opc.tcp://localhost/test"
|
||||||
|
},
|
||||||
"Controller": {
|
"Controller": {
|
||||||
"WaitingListCount": "100"
|
"WaitingListCount": "100"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,12 @@
|
|||||||
"Parity": "Even"
|
"Parity": "Even"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"OpcDa": {
|
||||||
|
"Host": "opcda://localhost/test"
|
||||||
|
},
|
||||||
|
"OpcUa": {
|
||||||
|
"Host": "opc.tcp://localhost/test"
|
||||||
|
},
|
||||||
"Controller": {
|
"Controller": {
|
||||||
"WaitingListCount": "100"
|
"WaitingListCount": "100"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,12 @@
|
|||||||
"Parity": "Even"
|
"Parity": "Even"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"OpcDa": {
|
||||||
|
"Host": "opcda://localhost/test"
|
||||||
|
},
|
||||||
|
"OpcUa": {
|
||||||
|
"Host": "opc.tcp://localhost/test"
|
||||||
|
},
|
||||||
"Controller": {
|
"Controller": {
|
||||||
"WaitingListCount": "100"
|
"WaitingListCount": "100"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,12 @@
|
|||||||
"Parity": "Even"
|
"Parity": "Even"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"OpcDa": {
|
||||||
|
"Host": "opcda://localhost/test"
|
||||||
|
},
|
||||||
|
"OpcUa": {
|
||||||
|
"Host": "opc.tcp://localhost/test"
|
||||||
|
},
|
||||||
"Controller": {
|
"Controller": {
|
||||||
"WaitingListCount": "100"
|
"WaitingListCount": "100"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user