From 1459711ef822f9e87e6c1e720ff707681f6521ec Mon Sep 17 00:00:00 2001 From: David Cermak Date: Wed, 26 Oct 2022 18:36:58 +0200 Subject: [PATCH] mqtt: Fix keepalive with esp-timer; clean close SM (v4.4) * Fixes keepalive calculation to use esp-timer (previously used system timer that might get updated by NTP sync and failing keepalive mechanism) * Fixes start() -> stop() -> start() client's transitions, due to wrong state of stopped client (could endup in WAIT_RECONNECT state and thus never allowed to be started again) * Update submodule: git log --oneline 60983d1dd54196b1e3f399c6f928d77256ec742a..bb9c8af9d552b608dd3aabf9617bde757a538ebe Detailed description of the changes: * Backport Moves state change when stopping the client - See merge request espressif/esp-mqtt!151 - Closes https://github.com/espressif/esp-mqtt/issues/239 - Moves state change when stopping the client (espressif/esp-mqtt@af58f5f) * fix: MQTT tick not starting on connect and switch to esp_timer - See merge request espressif/esp-mqtt!146 - Closes https://github.com/espressif/esp-idf/issues/9492 - See commit https://github.com/espressif/esp-mqtt/commit/166741f * ci: Fix CI build using public IDF images - See merge request espressif/esp-mqtt!148 - See commit https://github.com/espressif/esp-mqtt/commit/530fe3a Closes https://github.com/espressif/esp-idf/issues/9492 --- components/mqtt/esp-mqtt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mqtt/esp-mqtt b/components/mqtt/esp-mqtt index 60983d1dd5..bb9c8af9d5 160000 --- a/components/mqtt/esp-mqtt +++ b/components/mqtt/esp-mqtt @@ -1 +1 @@ -Subproject commit 60983d1dd54196b1e3f399c6f928d77256ec742a +Subproject commit bb9c8af9d552b608dd3aabf9617bde757a538ebe