Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions wiring/inc/spark_wiring_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class Stream : public Print
// terminates if length characters have been read or timeout (see setTimeout)
// returns the number of characters placed in the buffer (0 means no valid data found)

size_t readBytes(uint8_t *buffer, size_t length) { return readBytes(reinterpret_cast<char*>(buffer), length); }

size_t readBytesUntil( char terminator, char *buffer, size_t length); // as readBytes with terminator character
// terminates if length characters have been read, timeout, or if the terminator character detected
// returns the number of characters placed in the buffer (0 means no valid data found)
Expand Down