Skip to content

Commit

Permalink
version: update paho-mqtt version to hopefully fix reconnect bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chicoferreira committed Jan 29, 2024
1 parent de8def9 commit cc2c3a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion yeelight-controller/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1", features = ["full"] }
paho-mqtt = "0.12.1"
paho-mqtt = "0.12.3"
env_logger = "0.11.0"
log = { version = "0.4.19", features = ["max_level_trace", "release_max_level_info"] }
dashmap = "5.5.3"
Expand Down
1 change: 0 additions & 1 deletion yeelight-controller/src/mqtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub async fn connect_mqtt(
}

let connection_options = connection_options
.keep_alive_interval(Duration::from_secs(20))
.clean_session(true)
.automatic_reconnect(Duration::from_secs(1), Duration::from_secs(30))
.finalize();
Expand Down

0 comments on commit cc2c3a2

Please sign in to comment.