Skip to content

Commit

Permalink
changed mqtt client name and fixed max-temp typo
Browse files Browse the repository at this point in the history
  • Loading branch information
adenoz committed Jan 11, 2023
1 parent 143b6fa commit c481a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async fn get_weather() -> Result<(), Box<dyn Error>> {
// At that point, we will no longer need the println! lines
// as those lines are temporary only.

let mut mqttoptions = MqttOptions::new("mqtt-play", ip, 1883);
let mut mqttoptions = MqttOptions::new("rusqttbom", ip, 1883);
mqttoptions.set_keep_alive(Duration::from_secs(5));
let (client, mut eventloop) = AsyncClient::new(mqttoptions, 10);

Expand Down Expand Up @@ -154,7 +154,7 @@ async fn get_weather() -> Result<(), Box<dyn Error>> {
None => println!("None value for min temp"),
}

let max_temp_topic = "outside/weather/min-temp";
let max_temp_topic = "outside/weather/max-temp";
let max_temp = &response.data.max_temp.value;
match &max_temp {
Some(max_temp) => client
Expand Down

0 comments on commit c481a07

Please sign in to comment.