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.cr

Instance Method Summary

Instance Method Detail

abstract def power(state : Bool) #

[View source]
def power_state(state : PowerState) #

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


[View source]