Closed QuentinFarizon closed 1 month ago
Interesting : these errors happen only if I first successfully connect to a MQTT server, with TLS.
If I don't connect to MQTT, the HTTP SSL connection works perfectly
Did you try to check free memory in both cases? TLS connections require a lot of free memory, close to 40kB IIRC.
Hi @QuentinFarizon Can you please provide certificate which started causing this issue? And yes, Please check the memory available with help of esp_get_free_heap_size esp_get_miniumum_free_heap_size() and as @chegewara has mentioned. If possible, please provide a small reproducible app that can reproduce this issue. Thanks
@QuentinFarizon Please feel free to re-open if the issue still persists. Thanks
Answers checklist.
IDF version.
v5.1.2
Espressif SoC revision.
ESP32
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-Pico-v4
Power Supply used.
USB
What is the expected behavior?
I expect to not get mbdetls errors
What is the actual behavior?
I started gettting mbedtls errors after updating a server certificate. This code is working on ESP32-S3 without issue, and it was working in ESP32 without issue with a previous server certificate.
I have a task that make call to an https server at interval It always succeeds to make the call the first time, but then it fails repeatedly, with like 5% of successful calls
On success:
On error:
Find below the full verbose log
Steps to reproduce.
In main.c :
xTaskCreate(&check_and_perform_dfu_task, "check_and_perform_dfu_task", 8192, NULL, 2, NULL);
In task :
Debug Logs.
More Information.
No response