Page 1 of 1

MQTT client hanging on stop/destroy after connect fail

Posted: Thu Aug 29, 2019 12:14 pm
by TheRealRevK
v4.1-dev-104-gaa087667d

If MQTT fails to connect (in this case it is cert parse issue), then trying esp_mqtt_client_stop or esp_mqtt_client_destroy just hang!

This is how MQTT failed, for reference. Probably my mistake in the cert.
[Codebox]E (4543) esp-tls: mbedtls_x509_crt_parse returned -0x2780
E (4544) esp-tls: Failed to set client configurations
E (4545) esp-tls: create_ssl_handle failed
E (4550) esp-tls: Failed to open new connection
E (4555) TRANS_SSL: Failed to open a new connection
E (4563) MQTT_CLIENT: Error transport connect[/Codebox]

Re: MQTT client hanging on stop/destroy after connect fail

Posted: Wed Nov 18, 2020 1:56 pm
by arunvtec
I am facing same issue.

IDF version v4.2-dev-1660-g7d7521367