1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

add function peekBytes to WiFiClient/WiFiClientSecure to allow to peek multiple bytes if possible

This commit is contained in:
Markus Sattler
2015-12-19 14:37:36 +01:00
parent 898737422e
commit 5333ebfed7
5 changed files with 72 additions and 0 deletions

View File

@ -46,6 +46,7 @@ public:
int available() override;
int read() override;
int peek() override;
size_t peekBytes(uint8_t *buffer, size_t length) override;
void stop() override;
void setCertificate(const uint8_t* cert_data, size_t size);