module PlaceOS::Driver::Interface::Powerable
Overview
Compatible drivers will expose a status variable:
self[:power] # `true` / `false`
The power state function allows one to sepecify a preferred level of off if supported by the device
Defined in:
placeos-driver/interface/powerable.crInstance Method Summary
- #power(state : Bool)
-
#power_state(state : PowerState)
override this to implement
PowerState::FullOff
if it is available for the device
Instance Method Detail
def power_state(state : PowerState)
#
override this to implement PowerState::FullOff
if it is available for the device