SensorModbusMaster
SensorModbusMaster copied to clipboard
Support for CustomSoftwareSerial library?
First of all, I must say that it is a joy to use your library; its simple yet does all (except 1) I require to interface with my modbus device to an arduino nano. The only issue is that my modbus device required 8N2 (and the nano has only 1 hardware serial connected to the pc usb); so I cant use AltSoftSerial or SoftwareSerial. Would it be possible for you to add support for the CustomSoftwareSerial library (https://github.com/ledongthuc/CustomSoftwareSerial)?
Thanks
I'm catching up on issues after 3 months on leave.
CustomSoftwareSerial should already work with this library. The constructor requires a Stream object. Quickly looking at the source code for CustomSoftwareSerial, that library does inherit from Stream, so you should be good to go.
Did it not work as you expected? If not, what didn't work? (ie, couldn't compile, crashed on run, didn't get data, data was garbled, etc)
If you've already figured out whatever was wrong before I got to this, could you please post the solution and close the issue?