ModbusMaster RTU Library

This library handles Modbus master RTU communication. The library supports callbacks for pre- and post-transmission, receive and transmit logging.


The patch provides changeable response timeout using MB_RESPONSE_TIMEOUT (in milliseconds).

The original author of the library is 4-20ma:

The one included in Sming is nomis’ fork: (see branch fixes-2.0.1) that isn’t yet merged to the original repository.


Used by

Environment Variables

SoC support

  • esp32

  • esp32c2

  • esp32c3

  • esp32s2

  • esp32s3

  • esp8266

  • host

  • rp2040

Submodule: ModbusMaster