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