esp_mqtt/mqtt
Philip Lorenz 0f980bf7eb Delete existing connection before connecting
If the current connection is terminated unexpectedly (e.g. because the
WiFi connection is dropped) the disconnect callback is not called. This
means that reestablishing the existing connection is not possible any
more.

Avoid this issue by forcefully removing the existing connection before
initiating the reconnection. Calling MQTT_Disconnect and waiting for
the disconnection callback should still be performed for intentional
disconnections.

Fixes #96
2016-04-03 19:38:50 +02:00
..
include Disconnect before reconnecting 2016-02-14 22:29:57 +01:00
Makefile fixed a copy&paste bug 2015-01-18 12:40:57 +01:00
mqtt.c Delete existing connection before connecting 2016-04-03 19:38:50 +02:00
mqtt_msg.c Clear whole mqtt_connection_t. 2015-07-23 14:43:55 +02:00
proto.c add ICACHE_FLASH_ATTR on functions, resolve #31 2015-01-31 13:21:29 +07:00
queue.c add ICACHE_FLASH_ATTR on functions, resolve #31 2015-01-31 13:21:29 +07:00
ringbuf.c add ICACHE_FLASH_ATTR on functions, resolve #31 2015-01-31 13:21:29 +07:00
utils.c add ICACHE_FLASH_ATTR on functions, resolve #31 2015-01-31 13:21:29 +07:00