Grizzly.ZWave.SmartStart.MetaExtension.BootstrappingMode (grizzly v0.15.6) View Source

This extension is used to advertise the bootstrapping mode to use when including the node advertised in the provisioning list

Link to this section Summary

Types

The modes are

t()

Functions

Make a BootstrappingMode.t() from a binary

Create a BootstrappingMode.t()

Make a binary from a BootstrappingMode.t()

Link to this section Types

Specs

mode() :: :security_2 | :smart_start

The modes are:

  • :security_2 - the node must be manually set to learn mode and follow the S2 bootstrapping instructions
  • :smart_start - the node will use S2 bootstrapping automatically using the SmartStart functionality

Specs

t() :: %Grizzly.ZWave.SmartStart.MetaExtension.BootstrappingMode{mode: mode()}

Link to this section Functions

Specs

from_binary(binary()) ::
  {:ok, t()} | {:error, :critical_bit_not_set | :invalid_binary}

Make a BootstrappingMode.t() from a binary

The binary string for this extension requires the critical bit to be set and if it is not this function will return {:error, :critical_bit_not_set}

Specs

new(mode()) :: {:ok, t()} | {:error, :invalid_mode}

Create a BootstrappingMode.t()

Link to this function

to_binary(bootstrapping_mode)

View Source

Specs

to_binary(t()) :: {:ok, binary()}

Make a binary from a BootstrappingMode.t()