arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.69k stars 4.72k forks source link

Berry refactor IM to detect failed subscription heartbeats #21706

Closed s-hadinger closed 2 days ago

s-hadinger commented 2 days ago

Description:

Matter, small refactoring so that IM messages are active until the final Ack is sent by the controller, instead of the last response.

Currently, subscriptions heartbeats are sent typically every 60 seconds, but a missing Ack is not detected; hence Tasmota would send heartbeats forever. Now the missing Ack is detected and the subscription is cancelled if the controller is gone.

Checklist:

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass