Fix
This commit is contained in:
@@ -106,7 +106,7 @@ namespace Modbus.Net
|
|||||||
{
|
{
|
||||||
var extBytes = BytesExtend(content);
|
var extBytes = BytesExtend(content);
|
||||||
var receiveBytes = await SendReceiveWithoutExtAndDecAsync(extBytes);
|
var receiveBytes = await SendReceiveWithoutExtAndDecAsync(extBytes);
|
||||||
return receiveBytes;
|
return BytesDecact(receiveBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -151,20 +151,14 @@ namespace Modbus.Net
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="content">扩展前的基本协议内容</param>
|
/// <param name="content">扩展前的基本协议内容</param>
|
||||||
/// <returns>扩展后的协议内容</returns>
|
/// <returns>扩展后的协议内容</returns>
|
||||||
public virtual TParamIn BytesExtend(TParamIn content)
|
public abstract TParamIn BytesExtend(TParamIn content);
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 协议内容缩减,接收时根据需要缩减
|
/// 协议内容缩减,接收时根据需要缩减
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="content">缩减前的完整协议内容</param>
|
/// <param name="content">缩减前的完整协议内容</param>
|
||||||
/// <returns>缩减后的协议内容</returns>
|
/// <returns>缩减后的协议内容</returns>
|
||||||
public virtual TParamOut BytesDecact(TParamOut content)
|
public abstract TParamOut BytesDecact(TParamOut content);
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 连接设备
|
/// 连接设备
|
||||||
|
|||||||
Reference in New Issue
Block a user