Merge pull request #11307 from s-hadinger/esp32_tls_2k_buffers

ESP32 increase TLS buffers
This commit is contained in:
Theo Arends 2021-03-12 09:05:31 +01:00 committed by GitHub
commit b6e8e5a2ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -183,7 +183,11 @@ void MqttInit(void) {
}
if (Mqtt.mqtt_tls) {
#ifdef ESP32
tlsClient = new BearSSL::WiFiClientSecure_light(2048,2048);
#else // ESP32 - ESP8266
tlsClient = new BearSSL::WiFiClientSecure_light(1024,1024);
#endif
#ifdef USE_MQTT_AWS_IOT
loadTlsDir(); // load key and certificate data from Flash