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

some question

Open VergilDMC00 opened this issue 3 years ago • 1 comments

hello, im using this library to connect with a device via modbus protocol, i would like to know if there is a way to continue to try to connect if the first attempt fail, and if there a method to reconnect when at the certain time there connection is missing

VergilDMC00 avatar Oct 10 '22 14:10 VergilDMC00

hi, thank you for the issue,

this example show a logger that handles some connection issues: https://github.com/yaacov/node-modbus-serial/blob/master/examples/logger_complete.js

you can look how this example handles connection issues and try to add some logic based on that example.

yaacov avatar Oct 18 '22 08:10 yaacov