Closed iurly closed 8 years ago
Great work. I will check that tomorrow.
All test are passing. It seems that this pull request does not influence the tcp part. Can anyone with a serial device confirm that this is working? Great work btw.
I tested it on a real device (all the details are in commit 48092fe). Readability of the code is not ideal and it could use some nice rewriting though.
@iurly how about I make this a new branch and add you as a collaborator?
That would be great, thanks!
I've created a new branch 1.1-dev. Should be the place to work on the serial stuff from now on.
the current (probably untested) serial implementation calculates a basic checksum instead of the required CRC-16 in Modbus mode. Also, the reponse handlers do not expect buffers the slave address as the first byte, which therefore needs to be removed. Fixed both.