8000 Added readBytes overriden implementation used by Updater · I-Connect/ArduinoHttpClient@a6bfa2c · GitHub
[go: up one dir, main page]

Skip to content

Commit a6bfa2c

Browse files
committed
Added readBytes overriden implementation used by Updater
1 parent 5bd0f46 commit a6bfa2c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ArdHttpClient.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,15 @@ class HttpClient : public Client
332332
*/
333333
virtual int read();
334334
virtual int read(uint8_t* buf, size_t size);
335+
336+
/** Read bytes from server in buffer,
337+
*
338+
* this method is used i.e by Updater.writeStream()
339+
* */
340+
size_t readBytes(uint8_t* buf, size_t size) override {
341+
return iClient->read(buf, size);
342+
};
343+
335344
virtual int peek() {
336345
return iClient->peek();
337346
};

0 commit comments

Comments
 (0)
0