Cloud-Automation / node-modbus

Modbus TCP Client/Server implementation for Node.JS
456 stars 169 forks source link

Change timeout #326

Closed i-sobot closed 1 month ago

i-sobot commented 1 year ago

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

stefanpoeter commented 1 year ago

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