AutoApi.MultiCommandState.from_bin
You're seeing just the function
from_bin
, go back to AutoApi.MultiCommandState module for more information.
Specs
Build state based on binary value
iex> state = AutoApi.MultiCommandState.from_bin(<<1, 0, 14, 1, 0, 11, 13, 0, 103, 1, 1, 0, 4, 1, 0, 1, 0>>) iex> %AutoApi.MultiCommandState{multi_states: [%AutoApi.Property{data: command}]} = state iex> %AutoApi.SetCommand{state: hood_state} = command iex> hood_state %AutoApi.HoodState{position: %AutoApi.Property{data: :closed}}