Grizzly.ZWave.SmartStart.MetaExtension.AdvancedJoining (grizzly v0.15.9) View Source
This extension is used to advertise the Security keys to grant during S2
bootstrapping to a SmartStart node in the provisioning list
For more information about S2 security see the Grizzly.Security
module
Link to this section Summary
Functions
Create a binary string from an AdvancedJoining.t()
Create a new AdvancedJoining.t()
This will validate the keys passed in are valid S2 keys. If a key is not a
valid S2 key this function will return {:error, :invalid_keys}
.
The key
parameter cannot be an empty list. If an empty list is passed in
then this function will return {:error, :empty_keys}
Create an AdvancedJoining.t()
from a binary string
If the binary string does not have the critical bit set then this function
will return {:error, :critical_bit_not_set}
Link to this section Types
Specs
t() :: %Grizzly.ZWave.SmartStart.MetaExtension.AdvancedJoining{ keys: [Grizzly.ZWave.Security.key(), ...] }
Link to this section Functions
Specs
Create a binary string from an AdvancedJoining.t()
Specs
new([Grizzly.ZWave.Security.key(), ...]) :: {:ok, t()} | {:error, :invalid_keys | :empty_keys}
Create a new AdvancedJoining.t()
This will validate the keys passed in are valid S2 keys. If a key is not a
valid S2 key this function will return {:error, :invalid_keys}
.
The key
parameter cannot be an empty list. If an empty list is passed in
then this function will return {:error, :empty_keys}
Specs
Create an AdvancedJoining.t()
from a binary string
If the binary string does not have the critical bit set then this function
will return {:error, :critical_bit_not_set}