[−][src]Module tplinker::devices
Structs for specific device models.
use tplinker::{ devices::LB110, capabilities::{Switch, Dimmer}, }; let device = LB110::new("192.168.0.99:9999").unwrap(); if device.is_on().unwrap() { let brightness = device.brightness().unwrap(); if brightness < 50 { device.set_brightness(brightness + 20).unwrap(); } }
Structs
HS100 | A HS100 smart plug |
HS105 | A HS105 smart plug mini |
HS110 | A HS110 smart plug with energy monitoring |
HS300 | A HS300 smart power strip with energy monitoring |
LB110 | A LB110 dimmable smart lightbulb |
RawDevice | A raw, generic smart device |
Enums
Device | An enum of the available device types. |