dss 0.1.2

Rust native DigitalStrom Server API
Documentation
1
2
3
4
5
6
7
fn main() {
    // Connect to the digital strom server
    let  appt = dss::Appartement::connect("dss", "dssadmin", "dssadmin").unwrap();

    // turn the light in the zone 2 and group 0 on
    appt.set_value(2, Some(0), dss::Value::Light(1.0)).unwrap();
}