From b3404547f88f77d1839293d7585c97d957d61d98 Mon Sep 17 00:00:00 2001 From: brentru Date: Mon, 9 Sep 2024 16:21:20 -0400 Subject: [PATCH] patch for esp32 NetworkClient and Client interfaces --- src/HttpClient.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/HttpClient.h b/src/HttpClient.h index 3d404af..acfb8b5 100644 --- a/src/HttpClient.h +++ b/src/HttpClient.h @@ -313,6 +313,10 @@ class HttpClient : public Client // Inherited from Client virtual int connect(IPAddress ip, uint16_t port) { return iClient->connect(ip, port); }; virtual int connect(const char *host, uint16_t port) { return iClient->connect(host, port); }; + #ifdef ARDUINO_ARCH_ESP32 + virtual int connect(const char *host, uint16_t port, int32_t timeout){ return iClient->connect(host, port, timeout); }; + virtual int connect(IPAddress ip, uint16_t port, int32_t timeout){ return iClient->connect(ip, port, timeout); }; + #endif virtual void stop(); virtual uint8_t connected() { return iClient->connected(); }; virtual operator bool() { return bool(iClient); };