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