MQTT apply for messaging is causing out of memory
-
I am have a a Basic Core device and I'm trying to build an integration with HomeAssistant, i have a number of sensors and relays connected to the M5. I have the device reading and publishing all the sensors to HA, however i have two relays i want to be able to trigger from HA, I have created the MQTT subscriptions however the moment i add "MQTT apply for messaging" to Loop, I my code initially works, then i start to see "mqtt_client: Error create mqtt task" errors every 15 seconds (I have nothing set on a 15 sec timer)), and after some time i get "mqtt_client: esp_mqtt_set_config(415): Memory exhausted" and the system panics and needs a power cycle before it will start working again
The moment i remove "MQTT apply for messaging" i no longer have this issue....
Not sure what to do, i even tried to build a safe function that would tear down MQTT and reconnect, but whatever i do, i still run out of memory eventually