mirror of https://github.com/arendst/Tasmota.git
Roll back from #13435
This commit is contained in:
parent
f9eee02265
commit
1aa017a095
|
@ -303,7 +303,7 @@ int WiFiClientSecure_light::connect(IPAddress ip, uint16_t port, int32_t timeout
|
||||||
}
|
}
|
||||||
return _connectSSL(nullptr);
|
return _connectSSL(nullptr);
|
||||||
}
|
}
|
||||||
#endif // ESP32
|
#else // ESP32
|
||||||
int WiFiClientSecure_light::connect(IPAddress ip, uint16_t port) {
|
int WiFiClientSecure_light::connect(IPAddress ip, uint16_t port) {
|
||||||
DEBUG_BSSL("connect(%s,%d)", ip.toString().c_str(), port);
|
DEBUG_BSSL("connect(%s,%d)", ip.toString().c_str(), port);
|
||||||
clearLastError();
|
clearLastError();
|
||||||
|
@ -313,6 +313,7 @@ int WiFiClientSecure_light::connect(IPAddress ip, uint16_t port) {
|
||||||
}
|
}
|
||||||
return _connectSSL(nullptr);
|
return _connectSSL(nullptr);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
int WiFiClientSecure_light::connect(const char* name, uint16_t port, int32_t timeout) {
|
int WiFiClientSecure_light::connect(const char* name, uint16_t port, int32_t timeout) {
|
||||||
|
|
|
@ -41,10 +41,11 @@ class WiFiClientSecure_light : public WiFiClient {
|
||||||
#ifdef ESP32 // the method to override in ESP32 has timeout argument
|
#ifdef ESP32 // the method to override in ESP32 has timeout argument
|
||||||
int connect(IPAddress ip, uint16_t port, int32_t timeout) override;
|
int connect(IPAddress ip, uint16_t port, int32_t timeout) override;
|
||||||
int connect(const char* name, uint16_t port, int32_t timeout) override;
|
int connect(const char* name, uint16_t port, int32_t timeout) override;
|
||||||
#endif
|
#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
|
||||||
|
|
||||||
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…
Reference in New Issue