I am sending data via mqtt.
I try to down wifi, mqtt and netif after publishing because it is a long time between publishing, but i get an warning then
an assert fail.
How do i shut down wifi,mqtt and netif so that I can use the same start up process each time.
First time through I can start up and publish data ok but shutting down mqtt I get error msg:
I (18680) MQTT: MQTT_PUBLIISHED
I (18690) MQTT_CLIENT: Client asked to disconnect
W (18690) MQTT_CLIENT: Client asked to stop, but was not started
assert failed: tlsf_free heap_tlsf.c:872 (!block_is_free(block) && "block already marked as free")
Then I get a panic abort
The commands i use are for shutting down mqtt client are:
Code: Select all
esp_mqtt_client_stop(client);
esp_mqtt_client_disconnect(client);
esp_mqtt_client_destroy(client);
It looks like it is a heap memory problem like a some memory was marked as free but it was not.
Any pointers in some direction is appreciated.