View Source Grizzly.ZWave.Commands.S2MessageEncapsulation.Extensions (grizzly v8.5.3)

Functions for working with S2 Message Encapsulation extensions.

Summary

Types

@type extension() ::
  {:span, senders_entropy_input :: binary()}
  | {:mpan, mpan()}
  | {:mgrp, group_id :: byte()}
  | {:mos, true}
@type extension_type() :: :span | :mpan | :mgrp | :mos
@type mpan() :: %{group_id: 0..255, inner_mpan_state: <<_::128>>}
@type t() :: [extension()]

Functions

@spec from_binary(binary()) ::
  {:ok, {[extension()], remainder :: binary()}}
  | {:error, :unsupported_critical_extension}