amcewen
f0b67153b3
Merge branch 'new-extension' of https://github.com/arduino/Arduino
2011-08-27 23:53:42 +01:00
David A. Mellis
47776bb8f5
Moving write errors out of return value into separate API methods.
...
write(), print(), println() now return size_t (and don't use negative values to signal errors).
Print adds writeError() for checking for write errors, clearWriteError() to reset the flag to false, and a protected setWriteError() for signalling errors.
http://code.google.com/p/arduino/issues/detail?id=598
2011-08-26 16:08:14 -04:00
David A. Mellis
6b5d027eef
Changing from long to ssize_t (int) for write(), print(), println() return.
2011-08-26 14:20:41 -04:00
David A. Mellis
9cb0caa376
write(), print(), and println() now return number of bytes written.
...
The type is long, and negative values indicate errors. Needs more testing.
http://code.google.com/p/arduino/issues/detail?id=551
2011-08-23 19:12:03 -04:00
David A. Mellis
235fb018b4
Added Printable interface class to allow printing of classes such as IPAddress
2011-06-04 09:19:17 -04:00
amcewen
a2b8e2c9ae
Added virtual destructor to Printable, which also requires new and delete operators to be added
2011-04-10 11:34:40 +01:00
amcewen
f90175a362
Added a brief explanation of how you'd use Printable
2011-04-02 11:33:27 +01:00
amcewen
94b279a3b3
Added Printable interface class to allow printing of classes such as IPAddress
2011-04-01 21:10:38 +01:00