espressif / esp-mqtt

ESP32 mqtt component
Apache License 2.0
603 stars 255 forks source link

MQTT_EVENT_DISCONNECTED reason (IDFGH-2516) #99

Closed InfiniteYuan closed 4 years ago

InfiniteYuan commented 5 years ago

In our application we use mqtt over ssl to connect to the MQTT broker, so we use cert and client cert to mutual authentication.

this is a example cfg for esp_mqtt_client_init:

we are able to import our certificate and connect to the broker with the esp_mqtt_client library, we know only if the connection was complete successfully or not, but for error management we want know the reason when it fail the mqtt connection.

david-cermak commented 5 years ago

Hi @InfiniteYuan1

I think it's a duplicate of https://github.com/espressif/esp-mqtt/issues/94 We will try to address the issue soon.

david-cermak commented 4 years ago

Closing as duplicate of https://github.com/espressif/esp-mqtt/issues/94 (Resolved)