diff --git a/NA200H/ModBus.Net/ConfigurationManager.Designer.cs b/NA200H/ModBus.Net/ConfigurationManager.Designer.cs index 4d6c075..bc83c37 100644 --- a/NA200H/ModBus.Net/ConfigurationManager.Designer.cs +++ b/NA200H/ModBus.Net/ConfigurationManager.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // 此代码由工具生成。 -// 运行时版本:4.0.30319.34014 +// 运行时版本:4.0.30319.18444 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 @@ -61,7 +61,7 @@ namespace ModBus.Net { } /// - /// 查找类似 192.168.2.100 的本地化字符串。 + /// 查找类似 192.168.3.247 的本地化字符串。 /// internal static string IP { get { diff --git a/NA200H/ModBus.Net/ConfigurationManager.resx b/NA200H/ModBus.Net/ConfigurationManager.resx index e2ed588..bef5369 100644 --- a/NA200H/ModBus.Net/ConfigurationManager.resx +++ b/NA200H/ModBus.Net/ConfigurationManager.resx @@ -118,7 +118,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - 192.168.2.100 + 192.168.3.247 502 diff --git a/NA200H/ModBus.Net/TCPProtocalLinker.cs b/NA200H/ModBus.Net/TCPProtocalLinker.cs index ead8bcf..dfbae9c 100644 --- a/NA200H/ModBus.Net/TCPProtocalLinker.cs +++ b/NA200H/ModBus.Net/TCPProtocalLinker.cs @@ -22,7 +22,7 @@ namespace ModBus.Net //接收数据 byte[] receiveBytes = BytesDecact(_socket.SendMsg(BytesExtend(content))); //容错处理 - if (!CheckRight(content)) return null; + if (!CheckRight(receiveBytes)) return null; //返回数据 return receiveBytes; }