node-modbus icon indicating copy to clipboard operation
node-modbus copied to clipboard

Change timeout

Open i-sobot opened this issue 1 year ago • 1 comments

Is it possible to change the timeout when reading the registers? How to do it?

i-sobot avatar May 18 '23 19:05 i-sobot

When you create a ModbusTCPClient you can specify the timeout

https://github.com/Cloud-Automation/node-modbus/blob/af7ddd3e47173233078ce8da65dfe9a020575eb3/src/modbus-tcp-client.ts#L41

stefanpoeter avatar May 19 '23 05:05 stefanpoeter