smarmengol / Modbus-Master-Slave-for-Arduino

Modbus Master-Slave library for Arduino
GNU Lesser General Public License v2.1
473 stars 328 forks source link

Test harness #46

Open alextingle opened 5 years ago

alextingle commented 5 years ago

Uses a loopback stream to set up communication between a master and slave on the same machine. Exercises various MODBUS functions, and tests that the results are correct. Test failures are reported to Serial, labelled "FAIL".

Also contains a couple of bug-fixes, which ensure that junk is not included in the MODBUS messages. (Found by the test harness.)

The motivation is to prepare for future code changes. Having a working test harness will help to ensure that changes have not broken anything.

alextingle commented 5 years ago

(Includes, and depends upon the Serial changes I already put in the other pull request.)