1 unstable release
0.1.0 | Jun 19, 2019 |
---|
#49 in #raspberry
Used in funksteckdosen-rest-rs
20KB
351 lines
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");
}
Dependencies
~4.5MB
~84K SLoC