mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
rm WifiClientSecure
This commit is contained in:
parent
17087d1b08
commit
2950de0016
@ -11960,13 +11960,8 @@ uint32_t call2https(const char *host, const char *path) {
|
|||||||
//if (TasmotaGlobal.global_state.wifi_down) return 1;
|
//if (TasmotaGlobal.global_state.wifi_down) return 1;
|
||||||
uint32_t status = 0;
|
uint32_t status = 0;
|
||||||
|
|
||||||
#ifdef ESP32
|
|
||||||
WiFiClientSecure *httpsClient;
|
|
||||||
httpsClient = new WiFiClientSecure;
|
|
||||||
#else
|
|
||||||
BearSSL::WiFiClientSecure_light *httpsClient;
|
BearSSL::WiFiClientSecure_light *httpsClient;
|
||||||
httpsClient = new BearSSL::WiFiClientSecure_light(1024, 1024);
|
httpsClient = new BearSSL::WiFiClientSecure_light(1024, 1024);
|
||||||
#endif
|
|
||||||
|
|
||||||
httpsClient->setTimeout(2000);
|
httpsClient->setTimeout(2000);
|
||||||
httpsClient->setInsecure();
|
httpsClient->setInsecure();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user