Struct tplinker::devices::KL110 [−][src]
pub struct KL110<T: Protocol> { /* fields omitted */ }
Expand description
A KL110 dimmable smart lightbulb
When directly creating a device using the from_*
methods below, you must make sure that the address you pass is indeed that of a KL110, as there is no further checking.
Implementations
Make a KL110 device from an address string
Make a KL110 device from an address struct
Trait Implementations
Send a message to a device and return its parsed response Read more
Reboot the device with a specified delay
Get percentage brightness of bulb
Set percentage brightness of bulb
Type of the emeter Read more
Get the realtime energy usage
Get the daily energy usage for a given month
Get the monthly energy usage for a given year
Get the current state of the light
Set the state of the light Read more
Switch the device off
Auto Trait Implementations
impl<T> RefUnwindSafe for KL110<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for KL110<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more