AutoApi.MultiCommandState.to_bin

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

Specs

to_bin(t()) :: binary()

Parse state to bin

iex> state = %AutoApi.HoodState{position: %AutoApi.Property{data: :closed}} iex> states = %AutoApi.Property{data: AutoApi.SetCommand.new(state)} iex> AutoApi.MultiCommandState.to_bin(%AutoApi.MultiCommandState{multi_states: [states]}) <<1, 0, 14, 1, 0, 11, 13, 0, 103, 1, 1, 0, 4, 1, 0, 1, 0>>