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,14 +38,14 @@ class WiFiClientSecure_light : public WiFiClient {
|
|||||||
|
|
||||||
void allocateBuffers(void);
|
void allocateBuffers(void);
|
||||||
|
|
||||||
#ifdef ESP32 // the method to override in ESP32 has timeout argument
|
#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) override;
|
int connect(IPAddress ip, uint16_t port, int32_t timeout = 3000) override;
|
||||||
int connect(const char* name, uint16_t port, int32_t timeout) override;
|
int connect(const char* name, uint16_t port, int32_t timeout = 3000) override;
|
||||||
#else
|
#else
|
||||||
int connect(IPAddress ip, uint16_t port) override;
|
int connect(IPAddress ip, uint16_t port) override;
|
||||||
int connect(const char* name, uint16_t port) override;
|
int connect(const char* name, uint16_t port) override;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint8_t connected() override;
|
uint8_t connected() override;
|
||||||
size_t write(const uint8_t *buf, size_t size) override;
|
size_t write(const uint8_t *buf, size_t size) override;
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
|
Loading…
x
Reference in New Issue
Block a user