Replies: 8 comments
-
Did you read the issue template? |
Beta Was this translation helpful? Give feedback.
-
My appogies ESP32-WROOM-32D yes using TLS = espMqttClientSecure mqttClient; |
Beta Was this translation helpful? Give feedback.
-
I guess it's the TLS client. The underlying "client context" is created in heap memory. Not much I can do here. |
Beta Was this translation helpful? Give feedback.
-
There are some ways to reduce the TLS client memory any idea where I would set this? |
Beta Was this translation helpful? Give feedback.
-
I don't know, never explored this area. |
Beta Was this translation helpful? Give feedback.
-
@fabltd if you are on ESP32 there is no easy way AFAIK, because the |
Beta Was this translation helpful? Give feedback.
-
BearSSL on an ESP32 has a much lighter footprint than MbedTLS (45kB vs 150kB). Tasmota has a trimmed down arduino/espressif32 core you can use that uses BearSSL. Try replacing the platform in your PIO ini with platform = https://github.com/tasmota/platform-espressif32.git or a specific version like |
Beta Was this translation helpful? Give feedback.
-
@fabltd If you convert your project to use ESP IDF (It is still Arduino) you can re-config MbedTLS to meet you need, instead using default build, recently I added support this lib to use ESP IDF, you can see variables to config here: https://docs.espressif.com/projects/esp-idf/en/v4.4.6/esp32/api-reference/kconfig.html#component-config-mbedtls. Update: other solution is use ESP32 with PSRAM. |
Beta Was this translation helpful? Give feedback.
-
When using this libiary I am seeing a sizable reduction in heapsize.
Any suggestions on how to reduce this.
I am also trying to use the HTTPS OTA but this is crashes due to insufficant free heap.
Help...
Thanks
Beta Was this translation helpful? Give feedback.
All reactions