Skip to content

Commit

Permalink
fix(client): Restore Arduino Client API
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Dec 23, 2024
1 parent 6bf6df2 commit d8bb0b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cores/esp32/Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions libraries/Network/src/NetworkClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d8bb0b7

Please sign in to comment.