File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ class Client : public Stream {
3131 virtual ErrorCode connect (const char *host, uint16_t port) =0;
3232 virtual size_t write (uint8_t ) =0;
3333 virtual size_t write (const uint8_t *buf, size_t size) =0;
34- virtual int available () = 0;
35- virtual int read () = 0;
36- virtual int read (uint8_t *buf, size_t size) = 0;
37- virtual int peek () = 0;
34+ virtual ReturnValue available () = 0;
35+ virtual ReturnValue read () = 0;
36+ virtual ReturnValue read (uint8_t *buf, size_t size) = 0;
37+ virtual ReturnValue peek () = 0;
3838 virtual void flush () = 0;
3939 virtual void stop () = 0;
4040 virtual uint8_t connected () = 0;
Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ class HardwareSerial : public Stream
9292 virtual ErrorCode begin (unsigned long baudrate, uint16_t config) = 0;
9393 virtual void end () = 0;
9494 virtual int available (void ) = 0;
95- virtual int peek (void ) = 0;
96- virtual int read (void ) = 0;
95+ virtual ReturnValue peek (void ) = 0;
96+ virtual ReturnValue read (void ) = 0;
9797 virtual void flush (void ) = 0;
9898 virtual size_t write (uint8_t ) = 0;
9999 using Print::write; // pull in write(str) and write(buf, size) from Print
Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ class Stream : public Print
5858 int peekNextDigit (LookaheadMode lookahead, bool detectDecimal); // returns the next numeric digit in the stream or -1 if timeout
5959
6060 public:
61- virtual int available () = 0;
62- virtual int read () = 0;
63- virtual int peek () = 0;
61+ virtual ReturnValue available () = 0;
62+ virtual ReturnValue read () = 0;
63+ virtual ReturnValue peek () = 0;
6464
6565 Stream () {_timeout=1000 ;}
6666
You can’t perform that action at this time.
0 commit comments