B4R Question B4R sketch uptime: how long worked your MCU without reboot maximally?

peacemaker

Expert
Licensed User
Longtime User
Hi, All

Do you have a statistics of your MCU B4R development ?
What MCU did you run and how long without reboot ?

Especial questions:
1) same, but if to use HTTP requests to a server ?
2) same, but if to use HTTPS requests to a server ?

My result of the classic ESP32 with HTTPS requests - ~72 hours maximal uptime (Internet router connection was stable for sure), but after 72 hours something wrong is inside and MCU is rebooting.
B4R v4.0, Arduino v2.3.6 (esptool.py v4.8.1), Arduino Espressif SDK v3.2.0.

And the stack and RAM heap is not being changed.

1749538947578.png
 

hatzisn

Expert
Licensed User
Longtime User
I have an ESP8266 application running in my home for ever since I built it. What I do, is everything that requires memory, I run it in its own sub so each time the sub exits the memory is released. What is interesting though, is that with http:// it works this way correctly, but with https:// I get the behavior you are mentioning.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
So, system FreeRTOS code is buggy for HTTPS-requests, as i can conclude...

DeepSeek suggested to try:
C++:
WiFiClientSecure client;
client.setSessionMode(true); // caching SSL-session
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
So, system FreeRTOS code is buggy for HTTPS-requests, as i can conclude...

DeepSeek suggested to try:
C++:
WiFiClientSecure client;
client.setSessionMode(true); // caching SSL-session

Sorry. Mine is not a FreeRTOS tasks application. It is pure B4R. I am not sure if there is even FreeRTOS for ESP8266 because as far as my knowledge goes ESP8266 is a single core processor.
 
Upvote 0
Top