SerialGSM icon indicating copy to clipboard operation
SerialGSM copied to clipboard

Consider changing inheritance scheme

Open JM-FRANCE opened this issue 8 years ago • 0 comments

Why do you need to inherit from SoftwareSerial rather than Print? (cf http://playground.arduino.cc/Code/Printclass )

That would allow to implement a simple scheme where you would pass at initialization a pointer to either a SoftwareSerial or HardwareSerial object that would become your print target in your code and leave the choice of hardware or software serial up to the user of the library

JM-FRANCE avatar Oct 04 '17 02:10 JM-FRANCE