Files
Modbus.Net/NA200H/ModBus.Net/ModbusTcpProtocalLinker.cs
2014-08-01 16:39:06 +08:00

21 lines
442 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModBus.Net
{
class ModbusTcpProtocalLinker : TcpProtocalLinker
{
public override bool CheckRight(byte[] content)
{
if (content[1] > 127)
{
throw new ModbusProtocalErrorException(content[2]);
}
return true;
}
}
}