Commit 119ece2b authored by Dirk O. Kaar's avatar Dirk O. Kaar Committed by Me No Dev

Portability from ESP8266, virtual Stream member functions. (#2701)

parent 606446a8
...@@ -97,8 +97,8 @@ public: ...@@ -97,8 +97,8 @@ public:
float parseFloat(); // float version of parseInt float parseFloat(); // float version of parseInt
size_t readBytes(char *buffer, size_t length); // read chars from stream into buffer virtual size_t readBytes(char *buffer, size_t length); // read chars from stream into buffer
size_t readBytes(uint8_t *buffer, size_t length) virtual size_t readBytes(uint8_t *buffer, size_t length)
{ {
return readBytes((char *) buffer, length); return readBytes((char *) buffer, length);
} }
...@@ -114,7 +114,7 @@ public: ...@@ -114,7 +114,7 @@ public:
// returns the number of characters placed in the buffer (0 means no valid data found) // returns the number of characters placed in the buffer (0 means no valid data found)
// Arduino String functions to be added here // Arduino String functions to be added here
String readString(); virtual String readString();
String readStringUntil(char terminator); String readStringUntil(char terminator);
protected: protected:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment