Easyuino
1.2.0
|
Provides an interface interface to write objects to a Stream. More...
#include <Printable.h>
Public Member Functions | |
virtual char * | toString () const =0 |
Used to return a string representation of the object state. More... | |
Friends | |
Stream & | operator<< (IN Stream &stream, IN const Printable &printable) |
Write the object state string representation to a given stream (e.g: Used to print the obejct state to the Serial monitor) | |
Provides an interface interface to write objects to a Stream.
Useful for debug the current state of the device.
|
pure virtual |
Used to return a string representation of the object state.
IMPORTANT: It is mandatory to free the returned pointer in order to have no memory leaks.
Implemented in Easyuino::RelayNamed, and Easyuino::DistanceMeterPrintable.