Closed alex-controlx closed 5 years ago
Hi @Alex-OPTIM
This must actually be the address from the request body. So it must look something like this requestBody.address * 2 + ... length ... > ... length
so you are partially right. Thanks for the hint, I'll prepare a pull request.
Thanks for your help.
src/modbus-server-response-handler.js at line 241 has "IF" statement which is always false.
responseBody
doesn't have propertyaddress
.I guess class
WriteMultipleRegistersResponseBody
needs to be modified to getaddress
property or in the "IF" statement it needs to be propertystart
.Or even it should be:
if (responseBody.start * 2 + request.body.values.length > this._server.holding.length) { ...
Is it correct?