AutoApi.SetCommand.from_bin

You're seeing just the function from_bin, go back to AutoApi.SetCommand module for more information.

Specs

from_bin(binary()) :: t()

Parses a command binary and returns a SetCommand struct

Examples

iex> # Parses a "lock vehicle doors" command
iex> Elixir.AutoApi.SetCommand.from_bin(<<13, 0, 32, 1, 6, 0, 4, 1, 0, 1, 1>>)
%Elixir.AutoApi.SetCommand{capability: AutoApi.DoorsCapability, state: %AutoApi.DoorsState{locks_state: %AutoApi.Property{data: :locked}}, version: 13}