Search found 3 matches
- Mon Sep 18, 2023 11:33 am
- Forum: ESP-IDF
- Topic: ESP-MQTT Memory leak
- Replies: 6
- Views: 2180
Re: ESP-MQTT Memory leak
Thank you for the pointers. The codebase is large and as I say I'm not really able to show much more. How would you go about diagnosing these sorts of issues if I suspect something else in the code is causing it? From my testing everything else works fine if the MQTT component is commented out, henc...
- Sun Sep 17, 2023 4:15 pm
- Forum: ESP-IDF
- Topic: ESP-MQTT Memory leak
- Replies: 6
- Views: 2180
Re: ESP-MQTT Memory leak
I can't post my entire code as some of it is used commercially. This is the code to initialise the client: void Setup() { const esp_mqtt_client_config_t mqtt_cfg = { .broker = ... }, }; esp_mqtt_client_handle_t client = esp_mqtt_client_init(&mqtt_cfg); if (client) { vTaskDelay(pdMS_TO_TICKS(5000)); ...
- Wed Sep 13, 2023 11:54 am
- Forum: ESP-IDF
- Topic: ESP-MQTT Memory leak
- Replies: 6
- Views: 2180
ESP-MQTT Memory leak
When trying to initialise and start the mqtt client within a FreeRTOS task, I experience memory leaks/corruption. These are the two commands run: esp_mqtt_client_handle_t client = esp_mqtt_client_init(&mqtt_cfg); esp_mqtt_client_start(received_client); This happens even if I allocate over 50% of the...