MangoAutomation / modbus4j

A high-performance and ease-of-use implementation of the Modbus protocol written in Java. Supports ASCII, RTU, TCP, and UDP transports as slave or master, automatic request partitioning and response data type parsing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can i modify nextTransactionId property in TcpMatser class?

linzx2015 opened this issue · comments

commented

在我的项目中需要修改nextTransactionId的值,但是我查看源码之后发现不能修改,如果要让nextTransactionId值变化的话的需要不断去调用getNextTransactionId(),才能让其数值变化,在modbus4j的源码中是不是应该让开发者可以自己设置nextTransactionId的值?

@linzx2015 是非标的协议吗,标准的协议是不需要修改nextTransactionId的