SSL Error [004C] #92
-
Hi!, i'm having an issue with SSL when doing sync tasks in a FreeRTOS task (ESP32CAM). I'm getting:
after some time running tasks. It works normally for a minute and then this happens. The ESP doesn't crash but after this error, the firebase task doesn't work until a reset. This is my freeRTOS task for firebase (i wrote this based on another question in this discussions):
It works fine for a minute, and then the SSL error happens. I can share more code if you need to debug this. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
AS you will see the The issue is not related to library in anyway. You have to debug your code instead. |
Beta Was this translation helpful? Give feedback.
-
You should try to increase the stack for your And please make sure the |
Beta Was this translation helpful? Give feedback.
-
May be WiFi conflicts which you should test your code with internet access before applying to use with library. |
Beta Was this translation helpful? Give feedback.
-
Related issue https://forum.dronebotworkshop.com/esp32-esp8266/using-espnow-and-wifi-at-the-same-time-on-an-esp32/ |
Beta Was this translation helpful? Give feedback.
The problem is your device is out of memory because of opening multiple SSL connection simultaneously as you prefer to use sync function but still opening the server connection in another
FreeRTOS
task.When free Heap less than 100k in ESP32, the
mbedTLS
memory allocation will during TLS handshake andWiFiClientSecure
will not be able to connect to the server.If this happens in ESP8266 as free Heap is less than 7-8 k, your device will crash because of system task fails to feed the watch dog timer.
You will lose some memory used by stack in
FreeRTOS
tasks, then avoid using it as possible when memory is the constraint of yo…