Skip to content

MQTT Memory exhausted Issues #61

@oraclesod

Description

@oraclesod

II have been trying to build some code using M5Stack rather than C++ in Arduino on my M5 Basic unit and have been running into issues with the mqtt stack.

Initially I thought it was my code, using the UIFlow2 gui and reviewing the python, the build has a lot of variables and mqtt items published (16). So i went through and optimized the code myself, however no matter what I do, eventually i start seeing "mqtt_client: Error create mqtt task" messages and they appear every 15 seconds until i get a "esp_mqtt_set_config(415): Memory exhausted" message and the system panics. Thing is my code (after startup and the initial mqtt publish, only calls the update to the mqtt items ever 60 seconds, not every 15, i have no idea whats happening or whats using up memory, when i check gc.mem_free() there is lots of free memory so maybe there is fragmentation happening, however im not doing anything during those messages in my code

I created a forum post but im not too sure what to do next https://community.m5stack.com/topic/7712/mqtt-apply-for-messaging-is-causing-out-of-memory/2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions