View Source Grizzly.ZWave.Commands.ZIPPacket (grizzly v8.6.6)
Command for sending Z-Wave commands via Z/IP
Summary
Functions
Get the extension by extension name
Make a :nack_response
Removes the Z/IP Packet encapsulation from a command and returns the original command as a binary.
Make a Z/IP Packet Command that encapsulates another Z-Wave command
Types
@type flag() ::
:ack_response
| :ack_request
| :nack_response
| :nack_waiting
| :nack_queue_full
| :nack_option_error
| :invalid
@type param() :: {:command, Grizzly.ZWave.Command.t() | nil} | {:flag, flag() | nil} | {:seq_number, Grizzly.ZWave.seq_number()} | {:source, Grizzly.ZWave.node_id()} | {:dest, Grizzly.ZWave.node_id()} | {:header_extensions, [Grizzly.ZWave.Commands.ZIPPacket.HeaderExtensions.extension()]} | {:secure, boolean()} | {:more_info, boolean()}
Functions
@spec ack_response?(Grizzly.ZWave.Command.t()) :: boolean()
@spec command_name(Grizzly.ZWave.Command.t()) :: atom() | nil
@spec extension(Grizzly.ZWave.Command.t(), atom(), any()) :: any()
Get the extension by extension name
@spec make_ack_response( Grizzly.ZWave.seq_number(), keyword() ) :: Grizzly.ZWave.Command.t()
@spec make_nack_response(Grizzly.ZWave.seq_number()) :: Grizzly.ZWave.Command.t()
Make a :nack_response
@spec make_nack_waiting_response( Grizzly.ZWave.seq_number(), seconds :: non_neg_integer() ) :: Grizzly.ZWave.Command.t()
@spec nack_response?(Grizzly.ZWave.Command.t()) :: boolean()
@spec nack_waiting?(Grizzly.ZWave.Command.t()) :: boolean()
Removes the Z/IP Packet encapsulation from a command and returns the original command as a binary.
@spec with_zwave_command( Grizzly.ZWave.Command.t() | binary(), Grizzly.ZWave.seq_number(), [param()] ) :: {:ok, Grizzly.ZWave.Command.t()}
Make a Z/IP Packet Command that encapsulates another Z-Wave command