MQTT client hanging on stop/destroy after connect fail
Posted: 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]
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]