I'm writing a library and I'd like it work with either a SoftwareSerial object or HardwareSerial (the "Serial" object). By clearing the constructor in my library to take a Stream, I can get most of the way there.
However, I can't call stream.begin(4800) in my library because Stream doesn't have such a begin method, and the two serial classes don't have a common superclass or interface that defines a begin method.
Is there something I'm missing? If not, it would help in expanding use of SoftwareSerial if there were a common class that could be used.
Leigh.