Commit Graph

8 Commits

Author SHA1 Message Date
David A. Mellis 81f375b7ac Don't consume trailing char in parseInt() and parseFloat (Paul Stoffregen).
http://code.google.com/p/arduino/issues/detail?id=624
2011-09-09 16:24:47 -04:00
David A. Mellis 31b7b0be91 A few API changes to new Stream parsing functions.
Renamed readChars() -> readBytes(), readCharsUntil() -> readBytesUntil().
Changed timeouts to milliseconds from seconds; default from 5 to 1 seconds.
Removed readCharsBetween().
2011-08-17 14:16:47 -04:00
David A. Mellis 048cc03d98 Integrating Stream searching & parsing (Michael Margolis)
This from Michael's TextFinder library, incorporated into the Stream class: find(), findUntil(), parseInt(), parseFloat(), readChars(), readCharsUntil(), readCharsBetween(), setTimeout().
2011-08-17 13:53:49 -04:00
David A. Mellis 9e183cb0b4 SD File object implements Stream.
Added peak() and available() using a single byte buffer.
Added flush().
2010-11-20 11:45:05 -05:00
David A. Mellis b08c271c89 Making Client inherit from Stream, which unforunately means taking peek() out of Stream for now, since there's no immediate implementation for Client. 2010-08-11 18:19:01 +00:00
David A. Mellis c7eedf5fa5 changing available() to return an int (because the Ethernet Client class or another stream might need more than 255 bytes). 2010-08-02 22:23:48 +00:00
David A. Mellis d7c2a6f0f9 Adding a peek() function to Stream and HardwareSerial (Serial). 2010-07-04 23:31:55 +00:00
David A. Mellis 35f3178dfa Adding a basic Stream interface and modifying HardwareSerial to inherit from it. 2010-05-28 22:41:03 +00:00