From d8bb0b7823befa0bca0f6a2250751a97ee2c9496 Mon Sep 17 00:00:00 2001 From: pennam Date: Mon, 23 Dec 2024 13:43:51 +0100 Subject: [PATCH] fix(client): Restore Arduino Client API --- cores/esp32/Client.h | 2 -- libraries/Network/src/NetworkClient.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cores/esp32/Client.h b/cores/esp32/Client.h index 4ea10d070fb..ab013612401 100644 --- a/cores/esp32/Client.h +++ b/cores/esp32/Client.h @@ -26,9 +26,7 @@ class Client : public Stream { public: virtual int connect(IPAddress ip, uint16_t port) = 0; - virtual int connect(IPAddress ip, uint16_t port, int32_t timeout) = 0; virtual int connect(const char *host, uint16_t port) = 0; - virtual int connect(const char *host, uint16_t port, int32_t timeout) = 0; virtual size_t write(uint8_t) = 0; virtual size_t write(const uint8_t *buf, size_t size) = 0; virtual int available() = 0; diff --git a/libraries/Network/src/NetworkClient.h b/libraries/Network/src/NetworkClient.h index 1baf8b36139..52df868a0b0 100644 --- a/libraries/Network/src/NetworkClient.h +++ b/libraries/Network/src/NetworkClient.h @@ -29,6 +29,9 @@ class NetworkClientRxBuffer; class ESPLwIPClient : public Client { public: virtual void setConnectionTimeout(uint32_t milliseconds) = 0; + using Client::connect; + virtual int connect(IPAddress ip, uint16_t port, int32_t timeout) = 0; + virtual int connect(const char *host, uint16_t port, int32_t timeout) = 0; }; class NetworkClient : public ESPLwIPClient {