Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 445 Bytes

File metadata and controls

9 lines (6 loc) · 445 Bytes

ModbusMaster RTU generic sample

The generic sample calls mbLoop() each second. In mbLoop() the globalSeconds variable is incremented and sent to a slave device. Then the same register address of the same slave device is read and the result is output via debugf() using UART1.

The modbus response timeout can be changed using :envvar:`MB_RESPONSE_TIMEOUT`.

Check out my video.