mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-16 07:16:30 +00:00
BearSSL: support connect() without timeout on ESP32
BearSSL: support connect() without timeout on ESP32 (#13435)
This commit is contained in:
parent
f07f1bcf1f
commit
2e87681612
@ -38,9 +38,9 @@ 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user