AutoApi.ClimateState.to_bin

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

Specs

to_bin(t()) :: binary()

Parse state to bin

iex> state = %AutoApi.ClimateState{inside_temperature: %AutoApi.Property{data: %{value: 28.00, unit: :celsius}}} iex> AutoApi.ClimateState.to_bin(state) <<1, 0, 13, 1, 0, 10, 23, 1, 64, 60, 0, 0, 0, 0, 0, 0>>