grizzly v0.5.0 Grizzly.CommandClass.SwitchBinary View Source
Link to this section Summary
Link to this section Types
Link to this type
switch_state()
View Source
switch_state()
View Source
switch_state() :: :on | :off
switch_state() :: :on | :off
Link to this type
switch_state_byte()
View Source
switch_state_byte()
View Source
switch_state_byte() :: 0 | 255
switch_state_byte() :: 0 | 255
Link to this section Functions
Link to this function
encode_switch_state(arg)
View Source
encode_switch_state(arg)
View Source
encode_switch_state(switch_state()) ::
{:ok, switch_state_byte()} | {:error, :invalid_arg, any()}
encode_switch_state(switch_state()) :: {:ok, switch_state_byte()} | {:error, :invalid_arg, any()}