aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Stream.cpp
AgeCommit message (Collapse)Author
2014-05-30Fix of a bugAmulya Kumar Sahoo
Stream::find(char *target) passes NULL as “terminator” to Stream::findUntil(char *target, char *terminator), which immediately dereferences it by passing it on to strlen(): bool Stream::find(char *target) { return findUntil(target, NULL); } // as find but search ends if the terminator string is found bool Stream::findUntil(char *target, char *terminator) { return findUntil(target, strlen(target), terminator, strlen(terminator)); }
2012-05-16Adding readString() and readStringUntil() to Stream (Adrian McEwen).David A. Mellis
This isn't necessarily a particularly efficient implementation (it allocates memory one character at a time and so may lead to fragmentation) but it seems to work. http://code.google.com/p/arduino/issues/detail?id=454
2012-01-02Fixing findUntil() problem with repeated initial characters. (Jeffery.zksun)David A. Mellis
http://code.google.com/p/arduino/issues/detail?id=768
2011-11-19readBytes() and readBytesUntil() handle zero bytes and return # of bytes read.David A. Mellis
http://code.google.com/p/arduino/issues/detail?id=586
2011-10-02Fixing warnings in Stream (Paul Stoffregen)David A. Mellis
http://code.google.com/p/arduino/issues/detail?id=208
2011-09-09Don't consume trailing char in parseInt() and parseFloat (Paul Stoffregen).David A. Mellis
http://code.google.com/p/arduino/issues/detail?id=624
2011-08-18Stream.readBytesUntil() now writes null terminator within length.David A. Mellis
2011-08-17A few API changes to new Stream parsing functions.David A. Mellis
Renamed readChars() -> readBytes(), readCharsUntil() -> readBytesUntil(). Changed timeouts to milliseconds from seconds; default from 5 to 1 seconds. Removed readCharsBetween().
2011-08-17Integrating Stream searching & parsing (Michael Margolis)David A. Mellis
This from Michael's TextFinder library, incorporated into the Stream class: find(), findUntil(), parseInt(), parseFloat(), readChars(), readCharsUntil(), readCharsBetween(), setTimeout().