modbus 组包优化

This commit is contained in:
2248356998 qq.com
2023-05-20 21:41:16 +08:00
parent 4bd88ff11d
commit bd90e8efb2

View File

@@ -32,7 +32,7 @@
byteBlock.Pos = byteBlock.Len;
request.ReceivedBytes = allBytes;
request.Message = unpackbytes.Message;
if(allBytes.Length<=1)
if(allBytes.Length<=4)
{
return FilterResult.Cache;
}