| Crates.io | eq3-max-cube_rs |
| lib.rs | eq3-max-cube_rs |
| version | 0.2.5 |
| created_at | 2023-12-29 20:39:33.764633+00 |
| updated_at | 2024-01-04 11:36:10.852652+00 |
| description | an rust implmentation for operating MAX! Cube |
| homepage | |
| repository | https://github.com/Kanksu/eq3-max-cube_rs |
| max_upload_size | |
| id | 1083620 |
| size | 20,762 |
This crate implements some messages/command to the eQ3 / ELV Max! Cube via TCP connection.
use eq3_max_cube_rs::MaxCube;
#[tokio::main]
async fn main() {
// connect to Max Cube:
// `cube` is need to be mutable only if the temperature setting will be changed.
let mut cube = MaxCube::new(&SocketAddr::from(([172, 22, 51, 191], 62910))).await.unwrap();
// print the current status of the system
println!("System: {:?}", cube);
// set temperature of a thermostat
cube.set_temperature(1763839, 21.0).await.unwrap();
}
Only M-, S-, L-Messsages are implemented. It is enough for operating thermostats though.