Grizzly.ZWave.Commands.ZIPPacket (grizzly v0.15.6) View Source

Command for sending Z-Wave commands via Z/IP

Link to this section Summary

Link to this section Types

Specs

flag() ::
  :ack_response
  | :ack_request
  | :nack_response
  | :nack_waiting
  | :nack_queue_full
  | :nack_option_error
  | :invalid

Specs

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()}

Link to this section Functions

Specs

ack_response?(Grizzly.ZWave.Command.t()) :: boolean()

Specs

command_name(Grizzly.ZWave.Command.t()) :: atom() | nil
Link to this function

extension(command, extension_name, default \\ nil)

View Source

Specs

extension(Grizzly.ZWave.Command.t(), atom(), any()) :: any()

Get the extension by extension name

Specs

flag_to_byte(flag() | nil) :: byte()
Link to this function

make_ack_response(seq_number)

View Source

Specs

Link to this function

make_nack_response(seq_number)

View Source

Specs

Make a :nack_response

Link to this function

make_nack_waiting_response(seq_number, delay_in_seconds)

View Source

Specs

make_nack_waiting_response(
  Grizzly.ZWave.seq_number(),
  seconds :: non_neg_integer()
) :: Grizzly.ZWave.Command.t()
Link to this function

meta_to_byte(secure, command, extensions)

View Source
Link to this function

with_zwave_command(zwave_command, seq_number, params \\ [])

View Source

Specs

Make a Z/IP Packet Command that encapsulates another Z-Wave command