daikin-altherma-rs/examples/get_values.rs

16 lines
418 B
Rust
Raw Normal View History

use daikin_altherma::DaikinAlthermaClient;
fn main() {
let mut a = DaikinAlthermaClient::new("192.168.11.100".to_string()).unwrap();
let tp = a.get_tank_parameters().unwrap();
println!("Tank: {:?}", tp);
a.set_tank_powerful(false);
let tp = a.get_tank_parameters().unwrap();
println!("Tank: {:?}", tp);
let hp = a.get_heating_parameters().unwrap();
println!("Heating: {:?}", hp);
}