zengfr / easymodbus4j

easymodbus4j是一个高性能和易用的 Modbus 协议的 Java 实现,基于 Netty 开发,可用于 Modbus协议的Java客户端和服务器开发, A high-performance and ease-of-use implementation of the Modbus protocol written in Java netty support for modbus 4 mode..

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

readCoilsAsync要求讀取數量少于實際讀到的數量時報錯

zhizhico opened this issue · comments

sender.readCoilsAsync(startAddress, quantityOfCoils);
要求讀取數量少于實際讀到的數量時報錯如下:

java.lang.IndexOutOfBoundsException: readerIndex(2) + length(9) exceeds writerIndex(3): UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 2, widx: 3, cap: 11)