Instathings / modbus2mqtt

Modbus 🚌 to MQTT bridge 🌉
Other
38 stars 10 forks source link

Prevent hanging when a slave doesn't react. #14

Closed danielvandenberg95 closed 2 years ago

danielvandenberg95 commented 2 years ago

Program would hang if a slave was disconnected.

danielvandenberg95 commented 2 years ago

Currently simply a hardcoded timeout, 5s should be enough for any modbus application. The standard does not specify anything about timing. https://modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf

danielvandenberg95 commented 2 years ago

12 is better.