Closed ZantsuRocks closed 6 years ago
Which version are you using? This issue was fixed in v2.4.0
If you are still seeing the problem on v2.4.1, let me know and I'll take a further look at it.
I'm using v2.4.1
I replicated the issue with a slave simulator and fixed it in v2.4.2 which was published today.
When writing via RTU Over TCP after the first write subsequent writes go with header and the "useRtuOverTcp" turn false. All the tries to write fail after that.
This issue only occur when reconnection is set to true "((ModBusTCPMaster)).setReconnecting(true)", the "transport" object get NULL and set the "headless" flag to false.