I want to implement Modbus devices that can fail for 1 to 2 hours at any time.
After a short time the Modbus client should try to establish a connection to the device. After the reconnect timer has expired, I only get a connection again when I press deploy.
after the connection is lost, the node is in the init status. This status does not change even if the Modbus device can be reached again. The Modbus Node print the Message "Error: Client Not Ready To Read At State init"
As soon as I restart the NodeRed or press the deploy button, everything works normally again (data is retrieved)
I've already tried increasing the interval of Inject(Timer). However, I couldn't see any improvement
ok .. so this is the problem .. you are running Nodejs v14
you have to downgrade to v12 ..
until a fix /update is ready for these Modbus nodes (there is some discussion on the node's github page)
I see the version of Node-red is couple of versions behind
since you are on a Linux based system .. running the official installation script with the --node12 parameter should downgrade your nodejs to 12 and upgrade your Node-red to the latest 2.0.5