funksteckdose

Crates.iofunksteckdose
lib.rsfunksteckdose
version0.1.0
sourcesrc
created_at2019-06-19 19:44:55.499504
updated_at2019-06-19 19:44:55.499504
descriptionUtility for controlling wireless remote sockets via 433MHz radio transmitter
homepagehttps://github.com/flxo/funksteckdose
repositoryhttps://github.com/flxo/funksteckdose
max_upload_size
id142181
size20,504
Felix Obenhuber (flxo)

documentation

https://docs.rs/funksteckdose

README

Build Status crates.io

Funksteckdose

This program can be used to control 433MHz wireless power outlets. It implements a subset of the functionality of rc-switch. Check the wiki for a list of known and supported devices.

use funksteckdose::{wiringpi::WiringPiPin, Device, EncodingA, Protocol1, State};

fn main() {
    type Funksteckdose = funksteckdose::Funksteckdose<WiringPiPin, EncodingA, Protocol1>;
    let pin = WiringPiPin::new(0);
    let d: Funksteckdose = Funksteckdose::new(pin);
    d.send("10001", &Device::A, &State::On).expect("Failed to send");
}
Commit count: 4

cargo fmt