diff --git a/Cargo.lock b/Cargo.lock index d632eff..eaf02d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -289,7 +289,7 @@ dependencies = [ [[package]] name = "mqttAutomation" -version = "1.1.0" +version = "1.1.1" dependencies = [ "crossbeam", "json", diff --git a/Cargo.toml b/Cargo.toml index 2b3efab..c1fc7fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mqttAutomation" -version = "1.1.0" +version = "1.1.1" edition = "2021" [dependencies] diff --git a/src/main.rs b/src/main.rs index 1fd42ab..cb43f50 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,6 +118,10 @@ impl mqtt_client::MqttTool for Automation { Err(e) => println!("ERROR: main: faild to subscribe to clock/hour ({})", e), Ok(_) => {} } + match client.subscribe("clock/dow", rumqttc::QoS::AtMostOnce) { + Err(e) => println!("ERROR: main: faild to subscribe to clock/dow ({})", e), + Ok(_) => {} + } match client.subscribe("/cool/devices/KNMITemp/values", rumqttc::QoS::AtMostOnce) { Err(e) => println!("ERROR: main: faild to subscribe to KNMITemp/values ({})", e), Ok(_) => {}