diff --git a/Modbus.Net/ModBus.Net/TcpConnector.cs b/Modbus.Net/ModBus.Net/TcpConnector.cs index 40321b6..917487e 100644 --- a/Modbus.Net/ModBus.Net/TcpConnector.cs +++ b/Modbus.Net/ModBus.Net/TcpConnector.cs @@ -228,6 +228,7 @@ namespace ModBus.Net try { int len = await stream.ReadAsync(_receiveBuffer, 0, _receiveBuffer.Length); + stream.Flush(); // 异步接收回答 if (len > 0) {