2017-05-03 update 1 Base Connector Template (Not Test)
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Modbus.Net.OPC
|
||||
/// <summary>
|
||||
/// Opc Da协议连接器
|
||||
/// </summary>
|
||||
public class OpcDaProtocalLinker : ProtocalLinker
|
||||
public class OpcDaProtocalLinker : OpcProtocalLinker
|
||||
{
|
||||
public OpcDaProtocalLinker() : this(ConfigurationManager.OpcDaHost)
|
||||
{
|
||||
@@ -15,14 +15,5 @@ namespace Modbus.Net.OPC
|
||||
{
|
||||
BaseConnector = OpcDaConnector.Instance(host);
|
||||
}
|
||||
|
||||
public override bool? CheckRight(byte[] content)
|
||||
{
|
||||
if (content != null && content.Length == 6 && Encoding.ASCII.GetString(content) == "NoData")
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return base.CheckRight(content);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user