emelianov / modbus-esp8266

Most complete Modbus library for Arduino. A library that allows your Arduino board to communicate via Modbus protocol, acting as a master, slave or both. Supports network transport (Modbus TCP) and Serial line/RS-485 (Modbus RTU). Supports Modbus TCP Security for ESP8266/ESP32.
Other
534 stars 190 forks source link

- Allow to change MODBUSRTU_TIMEOUT from project #315

Closed lmartorella closed 6 months ago

lmartorella commented 1 year ago

With this simple change, it will be possible to override the RTU timeout from compiler flags (-DMODBUSRTU_TIMEOUT). Trying to implement a shorter RTU timeout from the applicative code won't work in primary mode, since the cleanup() call is protected: without this call the internal state will remain in listening mode and it will discard any additional send. Thanks! L