2016-01-12 update 3
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// 此代码由工具生成。
|
// 此代码由工具生成。
|
||||||
// 运行时版本:4.0.30319.34014
|
// 运行时版本:4.0.30319.42000
|
||||||
//
|
//
|
||||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||||
// 重新生成代码,这些更改将会丢失。
|
// 重新生成代码,这些更改将会丢失。
|
||||||
@@ -78,6 +78,15 @@ namespace ModBus.Net {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 查找类似 5000 的本地化字符串。
|
||||||
|
/// </summary>
|
||||||
|
internal static string IPConnectionTimeout {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("IPConnectionTimeout", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 502 的本地化字符串。
|
/// 查找类似 502 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -123,6 +123,9 @@
|
|||||||
<data name="IP" xml:space="preserve">
|
<data name="IP" xml:space="preserve">
|
||||||
<value>192.168.3.247</value>
|
<value>192.168.3.247</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="IPConnectionTimeout" xml:space="preserve">
|
||||||
|
<value>5000</value>
|
||||||
|
</data>
|
||||||
<data name="Port" xml:space="preserve">
|
<data name="Port" xml:space="preserve">
|
||||||
<value>502</value>
|
<value>502</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace ModBus.Net
|
|||||||
|
|
||||||
protected TcpProtocalLinker(string ip, int port)
|
protected TcpProtocalLinker(string ip, int port)
|
||||||
{
|
{
|
||||||
_baseConnector = new TcpConnector(ip, port, 2000);
|
_baseConnector = new TcpConnector(ip, port, int.Parse(ConfigurationManager.IPConnectionTimeout));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user