AutoApi.DoorsState.to_bin

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

Specs

to_bin(t()) :: binary()

Parse state to bin iex> AutoApi.DoorsState.to_bin(%AutoApi.DoorsState{positions: [%AutoApi.Property{data: %{location: :front_left, position: :open}}]}) <<0x04, 5::integer-16, 0x01, 2::integer-16, 0x00, 0x01>>