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