View Source
Grizzly.ZWave.Notifications
(grizzly v7.1.1)
Summary
Get the event from the byte given the notification type
Get the event byte given the event type
Get the type from the byte
Get the byte for the event name
Types
@type status() :: :enabled | :disabled
@type zwave_alarm_status() :: :deactivate | :activate
Functions
@spec decode_alarm_types(binary()) :: {:ok, [atom()]} | {:error, :invalid_type}
@spec decode_type_events(atom(), binary()) ::
{:error, :invalid_type} | {:error, :invalid_type_event} | {:ok, [atom()]}
@spec event_from_byte(type(), byte()) ::
{:ok, event()} | {:error, :invalid_event_byte}
Get the event from the byte given the notification type
Get the event byte given the event type
@spec type_from_byte(byte()) :: {:ok, type()} | {:error, :invalid_type_byte}
Get the type from the byte
Get the byte for the event name