grizzly v0.7.0 Grizzly.CommandClass.NetworkManagementInclusion.NodeAddKeysSet View Source
Module for working with the command NODE_ADD_KEYS_SET
opts:
seq_number
- the sequence number for this commandgrant_csa?
- boolean to grant client side authaccept_s2?
- boolean to tell device if the controll accepts s2 bootstrappinggranted_keys
- list of allowed levels for S2 securityretries
- the number of times to retry sending command
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()}
| {:grant_csa?, boolean()}
| {:accept_s2?, boolean()}
| {:granted_keys, [Grizzly.Security.key()]}
| {:retries, non_neg_integer()}
opt() :: {:seq_number, Grizzly.seq_number()} | {:grant_csa?, boolean()} | {:accept_s2?, boolean()} | {:granted_keys, [Grizzly.Security.key()]} | {:retries, non_neg_integer()}
Link to this type
t()
View Source
t()
View Source
t() :: %Grizzly.CommandClass.NetworkManagementInclusion.NodeAddKeysSet{
accept_s2?: boolean(),
grant_csa?: boolean(),
granted_keys: [Grizzly.Security.key()],
retries: non_neg_integer(),
seq_number: Grizzly.seq_number()
}
t() :: %Grizzly.CommandClass.NetworkManagementInclusion.NodeAddKeysSet{ accept_s2?: boolean(), grant_csa?: boolean(), granted_keys: [Grizzly.Security.key()], retries: non_neg_integer(), seq_number: Grizzly.seq_number() }
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, packet)
View Source
handle_response(command, packet)
View Source
handle_response(t(), Grizzly.Packet.t()) :: {:continue, t()}
handle_response(t(), Grizzly.Packet.t()) :: {:continue, t()}
Callback implementation for Grizzly.Command.handle_response/2
.
Link to this function
init(opts) View Source
Callback implementation for Grizzly.Command.init/1
.