module

PlaceOS::Driver::Interface::Powerable

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

Instance methods

power(state : Bool)
Source
power_state(state : PowerState)

override this to implement PowerState::FullOff if it is available for the device

Source

Nested types