Skip to content

Commit

Permalink
patch for esp32 NetworkClient and Client interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru committed Sep 9, 2024
1 parent 657e2b0 commit b340454
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/HttpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); };
Expand Down

0 comments on commit b340454

Please sign in to comment.