ModbusRTUMaster icon indicating copy to clipboard operation
ModbusRTUMaster copied to clipboard

Feature/due support

Open balinthanula opened this issue 1 year ago • 1 comments

I tried to use the library on an Arduino Due project, but noticed that it is not compiling. I added support for both types of HardwareSerial of the Arduino Due. In addition I changed the description in the Readme.md to reflect the changes for the Arduino Due. Also changed the links to the examples as the "extra" folder is already deleted.

balinthanula avatar Jun 04 '24 16:06 balinthanula

I don't really like adding features to the library I cannot test. I currently do not have an Arduino Due, but I have one on order. I'll see about adding the Due support once I have the board in hand and have opportunity.

Thank you for pointing out the errors with the example links in the README. I'll see about getting those corrected sooner rather than later.

CMB27 avatar Jun 08 '24 18:06 CMB27

I've opted to go a different route to get Arduino Due support. I changed the library to exclusively use Stream instead of HardwareSerial, or SoftwareSerial. It's getting a bit cumbersome to keep up with the various ways Serial is implemented.

I have successfully tested the updated 2.0.0 library with the Arduino Due.

Please review the README if you choose to implement the 2.0.0 version of the library. There are some significant changes.

CMB27 avatar Oct 10 '24 03:10 CMB27