BearSSL: support connect() without timeout on ESP32

BearSSL: support connect() without timeout on ESP32 (#13435)
This commit is contained in:
Theo Arends 2021-10-23 18:08:49 +02:00
parent f07f1bcf1f
commit 2e87681612
1 changed files with 4 additions and 4 deletions

View File

@ -38,14 +38,14 @@ class WiFiClientSecure_light : public WiFiClient {
void allocateBuffers(void);
#ifdef ESP32 // the method to override in ESP32 has timeout argument
int connect(IPAddress ip, uint16_t port, int32_t timeout) override;
int connect(const char* name, uint16_t port, int32_t timeout) override;
#ifdef ESP32 // the method to override in ESP32 has timeout argument default #define WIFI_CLIENT_DEF_CONN_TIMEOUT_MS (3000)
int connect(IPAddress ip, uint16_t port, int32_t timeout = 3000) override;
int connect(const char* name, uint16_t port, int32_t timeout = 3000) override;
#else
int connect(IPAddress ip, uint16_t port) override;
int connect(const char* name, uint16_t port) override;
#endif
uint8_t connected() override;
size_t write(const uint8_t *buf, size_t size) override;
#ifdef ESP8266