MQTT client hanging on stop/destroy after connect fail

User avatar
TheRealRevK
Posts: 9
Joined: Mon Aug 26, 2019 7:32 pm

MQTT client hanging on stop/destroy after connect fail

Postby TheRealRevK » Thu Aug 29, 2019 12:14 pm

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]

arunvtec
Posts: 2
Joined: Tue Nov 19, 2019 10:30 am

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

Postby arunvtec » Wed Nov 18, 2020 1:56 pm

I am facing same issue.

IDF version v4.2-dev-1660-g7d7521367

Who is online

Users browsing this forum: Bing [Bot] and 359 guests