Memory leak with AWS C SDK released by ESP for ESP32C3 (example OTA mqtt) on Internet disconnection and reconnection

0

Hi All,

We are working on ESP32C3 for OTA functionality using https://github.com/espressif/esp-aws-iot/tree/release/beta/examples/ota/ota_mqtt.

We understood original C SDK from AWS side updated from ESP side to make it compatible to ESP32C3.

As a part of testing, ESP32C3 is always connected to the Router over WiFi (Mobile Hotspot always ON). We are toggling the internet connection to the router.(Mobile Data turned Off and ON)

We observed on every internet reconnection, there is memory leak of ~3KB. The memory leak used to get restored. But it take ~12 Min, ~17 Min, ~23Min. In one of the captured log, original free heap of 121828 get reduced to 118620 (~3K leak) after internet restore. After ~23 min, memory leak recovered to 121740.

We are following with ESP for this issue. But we are getting little slow reply from ESP side.

We have following observation,

i) The AWS CSDK has WiFi disconnect event. But there is no event to handle Internet disconnect as we highlighted above - Mobile Data turned Off and ON

ii) On WiFi disconnection and reconnection, memory leak not observed

Our queries/request:

i) If possible, we request AWS to replicate above testing on ESP32 device and share result. We are also trying to build code for ESP32 - mqtt OTA released from AWS side. We are getting some error. We are working on same.

ii) Provide input from AWS side for memory leak observation. That will help to work on this issue further. **Did you came across the mentioned memory leak error in past? **

iii) Provide input on Internet disconnect event as we mentioned in observation 1

Thanks....

已提問 2 年前檢視次數 71 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南