grizzly v0.6.0 Grizzly.CommandClass.MultilevelSensor View Source
Conversions for multilevel sensors.
Link to this section Summary
Link to this section Types
Link to this type
level_type()
View Source
level_type()
View Source
level_type() :: :temperature | :illuminance | :power | :humidity
level_type() :: :temperature | :illuminance | :power | :humidity
Link to this section Functions
Link to this function
decode_sensor_types(binary)
View Source
decode_sensor_types(binary)
View Source
decode_sensor_types(binary()) :: [:atom]
decode_sensor_types(binary()) :: [:atom]
Link to this function
decode_type(type_num)
View Source
decode_type(type_num)
View Source
decode_type(byte()) :: level_type() | byte()
decode_type(byte()) :: level_type() | byte()
Link to this function
encode_type(type)
View Source
encode_type(type)
View Source
encode_type(level_type()) ::
{:ok, 1 | 3 | 4 | 5} | {:error, :invalid_arg, any()}
encode_type(level_type()) :: {:ok, 1 | 3 | 4 | 5} | {:error, :invalid_arg, any()}