grizzly v0.8.2 Grizzly.CommandClass.TimeParameters.Set View Source
Command module for working with TIME_PARAMETERS SET command
command options:
:year
- Year in the usual Gregorian calendar:month
- Month of the year between 01 (January) and 12 (December):day
- Day of the month between 01 and 31:hour
- Number of complete hours that have passed since midnight (00..23) in UTC:minute
- Number of complete minutes that have passed since the start of the hour (00..59) in UTC:second
- Number of complete seconds since the start of the minute (00..59) in UTC:seq_number
- The sequence number for the Z/IP Packet:retries
- The number times to retry to send the command (default 2)
Link to this section Summary
Functions
Callback implementation for Grizzly.Command.encode/1
.
Callback implementation for Grizzly.Command.handle_response/2
.
Callback implementation for Grizzly.Command.init/1
.
Link to this section Types
Link to this type
opt()
View Source
opt()
View Source
opt() ::
{:seq_number, Grizzly.seq_number()}
| {:retries, non_neg_integer()}
| {:value, Grizzly.CommandClass.TimeParameters.date_time()}
opt() :: {:seq_number, Grizzly.seq_number()} | {:retries, non_neg_integer()} | {:value, Grizzly.CommandClass.TimeParameters.date_time()}
Link to this type
t()
View Source
t()
View Source
t() :: %Grizzly.CommandClass.TimeParameters.Set{
retries: non_neg_integer(),
seq_number: Grizzly.seq_number(),
value: Grizzly.CommandClass.TimeParameters.date_time()
}
t() :: %Grizzly.CommandClass.TimeParameters.Set{ retries: non_neg_integer(), seq_number: Grizzly.seq_number(), value: Grizzly.CommandClass.TimeParameters.date_time() }
Link to this section Functions
Link to this function
encode(command)
View Source
encode(command)
View Source
encode(t()) :: {:ok, binary()} | {:error, Grizzly.Command.EncodeError.t()}
encode(t()) :: {:ok, binary()} | {:error, Grizzly.Command.EncodeError.t()}
Callback implementation for Grizzly.Command.encode/1
.
Link to this function
handle_response(command, arg2)
View Source
handle_response(command, arg2)
View Source
handle_response(t(), Grizzly.Packet.t()) ::
{:continue, t()}
| {:done, {:error, :nack_response}}
| {:done, Grizzly.CommandClass.TimeParameters.date_time()}
| {:retry, t()}
handle_response(t(), Grizzly.Packet.t()) :: {:continue, t()} | {:done, {:error, :nack_response}} | {:done, Grizzly.CommandClass.TimeParameters.date_time()} | {:retry, t()}
Callback implementation for Grizzly.Command.handle_response/2
.
Link to this function
init(opts) View Source
Callback implementation for Grizzly.Command.init/1
.