Hi guys!
I'm building a library that will allow you to debug your code faster. It is all based arround the Serial object. What i want to do is to have a function that returns to the user the Serial object. I know for a fact that Serial is an instance of Stream class. So, i tryed simply making a function like this:
Stream Debug::getBaseObject(){
return Serial;
}
This is being defined above using something like this:
class Debug{
public:
....
Stream getBaseObject();
private:
};
Using this i get an error, something that goes like this: "error: invalid abstract return type for member function 'Stream Debug::getBaseObject()".
I searched for a bit for other library that has a function that returns a Stream... but had no luck there
Any ideas would be apreciated! Thanks!