From e060b9808c1bbf3f99612b28cf19cc200964da70 Mon Sep 17 00:00:00 2001 From: Claas Date: Tue, 22 Oct 2024 00:35:03 +0200 Subject: [PATCH] Reset to old keep alive interval --- fan-controller/src/configuration.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fan-controller/src/configuration.rs b/fan-controller/src/configuration.rs index 8eab144..b51384b 100644 --- a/fan-controller/src/configuration.rs +++ b/fan-controller/src/configuration.rs @@ -40,12 +40,12 @@ pub(crate) const DISCOVERY_TOPIC: &str = "homeassistant/fan/testfan/config"; /// The keep alive interval defines the maximum time between messages sent to the broker. /// The broker will disconnect the client if no message is received within 1.5 times of the keep alive interval. -pub(crate) const KEEP_ALIVE: Duration = Duration::from_secs(10); +pub(crate) const KEEP_ALIVE: Duration = Duration::from_secs(60); const _: () = { // Check if the representation as u16 is correct let seconds = KEEP_ALIVE.as_secs() as u16; - core::assert!(seconds == 10); + core::assert!(seconds == 60); }; /// The timeout not to be confused with the keep alive interval is used for packets that require a -- 2.51.2